Skip to content

Commit

Permalink
Use tarpaulin
Browse files Browse the repository at this point in the history
  • Loading branch information
orkunkl committed Dec 6, 2024
1 parent c834d88 commit f3434bd
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f3434bd

Please sign in to comment.