From 6739c6aed43cb326b7b9314fc6ada8d946419b70 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Fri, 15 Sep 2023 10:43:07 +0200 Subject: [PATCH] Setup coverage with codecov.io (#635) --- .github/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd72c8e8..0e1ca049 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,9 +35,10 @@ jobs: - name: Setup Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 - - name: Setup nextest uses: taiki-e/install-action@nextest + - name: Setup cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov - name: Rustfmt uses: actions-rs/cargo@v1.0.1 @@ -53,13 +54,16 @@ jobs: - name: Tests - uses: actions-rs/cargo@v1.0.1 - with: - command: nextest - args: run --all ${{ matrix.flags }} + run: cargo llvm-cov nextest --all ${{ matrix.flags }} --lcov --output-path lcov.info - name: Doctests uses: actions-rs/cargo@v1.0.1 with: command: test args: --doc ${{ matrix.flags }} + + - name: Upload coverage + uses: codecov/codecov-action@v3 + with: + files: lcov.info +