Skip to content

Commit d35a5da

Browse files
committed
fail ci under 80% test cov
1 parent 420b8aa commit d35a5da

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,20 @@ jobs:
6464
# run: cargo build --verbose
6565
- name: Run tests
6666
run: cargo test --verbose
67+
68+
coverage:
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v4
72+
- name: Cache
73+
uses: actions/cache@v4
74+
with:
75+
path: |
76+
~/.cargo/registry
77+
~/.cargo/git
78+
target
79+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
80+
- name: Install tarpaulin
81+
run: cargo install cargo-tarpaulin
82+
- name: Run coverage
83+
run: cargo tarpaulin --fail-under 80

0 commit comments

Comments
 (0)