From 8fbc286605c7b56728d2a264f8d69a7277c5322a Mon Sep 17 00:00:00 2001 From: "KPNNL\\hol504" Date: Tue, 12 Dec 2023 15:55:24 +0100 Subject: [PATCH] Update github workflows --- .github/codecov.yml | 23 +++++++++++++ .github/workflows/branch.yaml | 2 +- .github/workflows/main.yaml | 64 +---------------------------------- 3 files changed, 25 insertions(+), 64 deletions(-) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000..5d70459 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,23 @@ +# ref: https://docs.codecov.com/docs/codecovyml-reference +coverage: + # Hold ourselves to a high bar + range: 85..100 + round: down + precision: 1 + status: + # ref: https://docs.codecov.com/docs/commit-status + project: + default: + # Avoid false negatives + threshold: 1% + +# Test and example files aren't important for coverage +ignore: + - "tests" + - "examples" + - "exeample_dsh_service" + +# Make comments less noisy +comment: + layout: "files" + require_changes: yes diff --git a/.github/workflows/branch.yaml b/.github/workflows/branch.yaml index c81aa3b..3db549f 100644 --- a/.github/workflows/branch.yaml +++ b/.github/workflows/branch.yaml @@ -11,7 +11,7 @@ env: jobs: linux: - runs-on: self-hosted + runs-on: ubuntu-latest strategy: matrix: version: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0e4bba2..5e35511 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,7 +11,7 @@ env: jobs: linux: - runs-on: self-hosted + runs-on: ubuntu-latest strategy: matrix: version: @@ -50,68 +50,6 @@ jobs: run: cargo install cargo-audit - name: audit check run: cargo audit - windows: - runs-on: windows-latest - strategy: - matrix: - version: - # - nightly - # - beta - - stable - target: - - x86_64-pc-windows-gnu - # - x86_64-pc-windows-msvc - fail-fast: false - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.version }} - override: true - - name: install - run: | - git clone https://github.com/Microsoft/vcpkg.git - ./vcpkg/bootstrap-vcpkg.sh - vcpkg integrate install - vcpkg install openssl:x64-windows-static-md - - name: build - run: cargo build --features full - - name: test - run: cargo test --features full -- --test-threads=1 || true - env: - RUST_BACKTRACE: 1 - - name: install audit - run: cargo install cargo-audit - - name: audit check - run: cargo audit - - mac: - runs-on: macos-latest - strategy: - matrix: - version: - - stable - # - beta - # - nightly - target: - - x86_64-apple-darwin - fail-fast: false - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.version }} - override: true - - name: build - run: cargo build --features full - - name: test - run: cargo test --features full -- --test-threads=1 || true - env: - RUST_BACKTRACE: 1 - - name: install audit - run: cargo install cargo-audit - - name: audit check - run: cargo audit coverage: runs-on: ubuntu-latest name: ubuntu / stable / coverage