diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 994b871..ffc69b5 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -90,18 +90,24 @@ jobs: matrix: rust: [ stable, beta, nightly ] runs-on: ubuntu-latest + env: + CARGO_TERM_COLOR: always needs: [ build ] steps: - name: Setup Rust uses: hecrj/setup-rust-action@v2 with: rust-version: ${{ matrix.rust }} - - name: Install Tarpaulin - uses: actions-rs/install@v0.1 + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: Generate code coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 with: - crate: cargo-tarpaulin - version: 0.14.2 - use-tool-cache: true + token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos + files: lcov.info + fail_ci_if_error: true - name: Checkout uses: actions/checkout@v4 - name: Test