From dfa7836f94659b2049dd984deb33ba62efc29a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20St=C3=BCrmer?= Date: Sat, 16 Sep 2023 00:17:23 +0200 Subject: [PATCH] create code coverage --- .github/workflows/check.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 7e2f1e9..e6de3f5 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -23,7 +23,7 @@ jobs: command: check test: - name: Test Suite + name: Tests runs-on: ubuntu-latest steps: - name: Checkout sources @@ -42,17 +42,25 @@ jobs: command: test args: --workspace --all-targets + - name: rust-grcov + # You may pin to the exact commit or the version. + # uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248 + uses: actions-rs/grcov@v0.1 + - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + verbose: true + fail_ci_if_error: true lints: - name: Lints + name: Lint checks runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install stable toolchain uses: actions-rs/toolchain@v1