diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index e77f716..97bcb08 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -22,28 +22,25 @@ jobs: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: - toolchain: nightly + toolchain: stable override: true - name: Build run: cargo build --verbose - - name: Run tests - run: cargo test --verbose --no-fail-fast + - name: Install cargo-llvm-cov and run tests + run: cargo install cargo-llvm-cov && cargo llvm-cov --lcov --output-path=./lcov.info env: CARGO_INCREMENTAL: '0' - RUSTFLAGS: '-Cinstrument-coverage' - - name: rust-grcov - # You may pin to the exact commit or the version. - # uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248 - uses: actions-rs/grcov@v0.1.5 - with: - config: .github/config/grcov.yml + RUSTFLAGS: '-Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Cpanic_abort_tests -Cinstrument-coverage' + RUSTDOCFLAGS: '-Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Cpanic_abort_tests -Cinstrument-coverage' - name: Codecov # You may pin to the exact commit or the version. # uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 - uses: codecov/codecov-action@v3.1.0 + # uses: codecov/codecov-action@v3.1.0 + uses: codecov/codecov-action@v4 with: # Repository upload token - get it from codecov.io. Required only for private repositories token: ${{ secrets.CODECOV_TOKEN }} + file: ./lcov.info # Specify whether the Codecov output should be verbose verbose: true fail_ci_if_error: true