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

Commit

Permalink
add coverage to coveralls.io
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
jhheider committed Jan 10, 2025
1 parent 84072b3 commit 820b3c5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 60 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ name: ci·rs
concurrency:
group: ci·rs·${{ github.ref}}

permissions:
contents: read
checks: write
pull-requests: write

jobs:
check:
strategy:
Expand Down Expand Up @@ -71,3 +76,28 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo run --all-features -- git --version

coverage:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo install cargo-tarpaulin
- run: cargo tarpaulin -o lcov --output-dir coverage
- uses: coverallsapp/github-action@v2
with:
path-to-lcov: coverage/lcov.info
parallel: true
flag-name: ${{ matrix.os }}

upload-coverage:
needs: coverage
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@v2
with:
parallel-finished: true
60 changes: 0 additions & 60 deletions .github/workflows/test.yml.todo

This file was deleted.

0 comments on commit 820b3c5

Please sign in to comment.