diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index f44b3b4..1f62001 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -11,25 +11,22 @@ env: CARGO_TERM_COLOR: always jobs: - build: + test: + name: coverage runs-on: ubuntu-latest - + container: + image: xd009642/tarpaulin:develop-nightly + options: --security-opt seccomp=unconfined steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - components: llvm-tools-preview - - name: cargo install cargo-llvm-cov - run: cargo install cargo-llvm-cov - - name: cargo llvm-cov - run: cargo llvm-cov --workspace --lcov --output-path lcov.info - - name: codecov - uses: codecov/codecov-action@v3 + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Generate code coverage + run: | + cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml + + - name: Upload to codecov.io + uses: codecov/codecov-action@v2 with: - # Repository upload token - get it from codecov.io. - token: ${{ secrets.CODECOV_TOKEN }} - # Specify whether the Codecov output should be verbose - verbose: true + token: ${{secrets.CODECOV_TOKEN}} # not required for public repos fail_ci_if_error: true