Skip to content

Commit

Permalink
ci: configure code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed Aug 16, 2024
1 parent 130d517 commit 9bbe3c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,18 @@ jobs:
toolchain: stable
- name: run cargo test
run: cargo test --all-features

coverage:
name: Code Coverage
runs-on: ubuntu-latest
container:
image: docker.io/xd009642/tarpaulin:0.31.0
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v4
- name: Generate code coverage
run: |
cargo tarpaulin --verbose --timeout 120
ls -la
# TODO add a step to upload the html coverage report
7 changes: 7 additions & 0 deletions .tarpaulin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[all]
all-features = true
workspace = true
target-dir = "target/coverage/"
fail-under = 1
exclude-files = ["target/*"]
out = ["Xml", "Html"]

0 comments on commit 9bbe3c1

Please sign in to comment.