From 2998f795fd95b432b1e06bb031eedcd8b97ab009 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 23 Mar 2024 07:19:10 +0100 Subject: [PATCH] Uploads code coverage to codecov --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 964db3da..4bbefbcf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -517,3 +517,19 @@ jobs: with: run: cargo codspeed run token: ${{ secrets.CODSPEED_TOKEN }} + + codecov: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: ./.github/actions/setup-rust + - uses: taiki-e/install-action@v2 + with: { tool: cargo-llvm-cov } + - run: cargo llvm-cov --codecov --output-path codecov.json + - uses: codecov/codecov-action@v3 + with: + files: codecov.json + flags: rust + fail_ci_if_error: true