Skip to content

Commit 80c6307

Browse files
add coverage
1 parent fc871d6 commit 80c6307

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,16 @@ jobs:
3434
path: ~/.cargo/git
3535
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
3636

37-
- name: Build and Run Tests
38-
run: cargo test --verbose
37+
- name: Install cargo-tarpaulin
38+
run: cargo install cargo-tarpaulin --locked
39+
40+
- name: Run Tests with Coverage
41+
run: cargo tarpaulin --exclude-files tests/* --out Xml --output-dir coverage
42+
43+
- name: Upload Coverage Report
44+
uses: actions/upload-artifact@v3
45+
with:
46+
name: coverage-report
47+
path: coverage
48+
49+

0 commit comments

Comments
 (0)