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

Commit

Permalink
Merge pull request #21 from pkgxdev/coverage
Browse files Browse the repository at this point in the history
add coverage to coveralls.io
  • Loading branch information
mxcl authored Jan 10, 2025
2 parents 60269f3 + 07089c0 commit 0340057
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 61 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/ci.coverage.yml.todo

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ name: ci·rs

concurrency:
group: ci·rs·${{ github.ref}}
cancel-in-progress: true

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

jobs:
check:
Expand Down Expand Up @@ -71,3 +77,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

0 comments on commit 0340057

Please sign in to comment.