Skip to content

Commit c6a6f7c

Browse files
committed
Update github workflows
Added test coverage reports to the CI workflow.
1 parent b5dcbde commit c6a6f7c

File tree

5 files changed

+2231
-139
lines changed

5 files changed

+2231
-139
lines changed

.github/workflows/coverage.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test Coverage
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
coverage:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install tarpaulin
17+
run: cargo install cargo-tarpaulin
18+
19+
- name: Generate code coverage report
20+
run: cargo tarpaulin --out Xml --output-dir .
21+
22+
- name: Upload to codecov.io
23+
uses: codecov/codecov-action@v4
24+
with:
25+
files: tarpaulin-report.xml

.github/workflows/ci.yml renamed to .github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust Test
1+
name: Cargo Test
22

33
on:
44
push:

0 commit comments

Comments
 (0)