Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit b6d0d01

Browse files
committed
add coverage to coveralls.io
we reference it int the readme (for `pkgxdev/pkgx`) so we might as well have it ready for when we merge. though the number will be bad (no significant coverage).
1 parent 84072b3 commit b6d0d01

File tree

2 files changed

+31
-60
lines changed

2 files changed

+31
-60
lines changed

.github/workflows/ci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ name: ci·rs
1212

1313
concurrency:
1414
group: ci·rs·${{ github.ref}}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
checks: write
20+
pull-requests: write
1521

1622
jobs:
1723
check:
@@ -71,3 +77,28 @@ jobs:
7177
- uses: actions/checkout@v4
7278
- uses: dtolnay/rust-toolchain@stable
7379
- run: cargo run --all-features -- git --version
80+
81+
coverage:
82+
strategy:
83+
matrix:
84+
os: [ubuntu-latest, macos-latest]
85+
runs-on: ${{ matrix.os }}
86+
steps:
87+
- uses: actions/checkout@v4
88+
- uses: dtolnay/rust-toolchain@stable
89+
- run: cargo install cargo-tarpaulin
90+
- run: cargo tarpaulin -o lcov --output-dir coverage
91+
- uses: coverallsapp/github-action@v2
92+
with:
93+
path-to-lcov: coverage/lcov.info
94+
parallel: true
95+
flag-name: ${{ matrix.os }}
96+
97+
upload-coverage:
98+
needs: coverage
99+
if: ${{ always() }}
100+
runs-on: ubuntu-latest
101+
steps:
102+
- uses: coverallsapp/github-action@v2
103+
with:
104+
parallel-finished: true

.github/workflows/test.yml.todo

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)