From 81d574fb6b79068ed439a48d6a7a9169d50752df Mon Sep 17 00:00:00 2001 From: Romain Marcadier Date: Thu, 27 Apr 2023 17:57:33 +0200 Subject: [PATCH] chore: upload coverage to Codecov (#115) --- .../{fmt-actions.yml => correctness.yml} | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) rename .github/workflows/{fmt-actions.yml => correctness.yml} (62%) diff --git a/.github/workflows/fmt-actions.yml b/.github/workflows/correctness.yml similarity index 62% rename from .github/workflows/fmt-actions.yml rename to .github/workflows/correctness.yml index 65a8feae..2c0c8dcf 100644 --- a/.github/workflows/fmt-actions.yml +++ b/.github/workflows/correctness.yml @@ -15,13 +15,11 @@ jobs: profile: minimal toolchain: stable override: true - components: rustfmt, clippy - # Ensure build.rs has ran before we assert formatting... + components: rustfmt, clippy, llvm-tools-preview + # Ensure build.rs has ran before we assert formatting... Gather coverage. - name: Run tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose + run: tasks/coverage.sh + - name: Check formatting uses: actions-rs/cargo@v1 with: @@ -32,3 +30,11 @@ jobs: with: command: clippy args: --manifest-path ./Cargo.toml -- -Adead-code -D warnings + + # Upload coverage data to Codecov + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: target/coverage/lcov.info + fail_ci_if_error: true