From e25725febe5bbabb06d748f00899755a9f13ebb0 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Wed, 22 Jan 2025 10:19:00 +0800 Subject: [PATCH] fix ci --- .github/workflows/check.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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