Skip to content

Commit

Permalink
Coverage Support
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed <>
  • Loading branch information
Ahmed authored and oddcoder committed Sep 16, 2024
1 parent 76e867c commit d4b6902
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,26 @@ jobs:
with:
command: clippy
args: --all-targets -- -D warnings
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Checkout Test Binaries
uses: actions/checkout@v4
with:
repository: Rair-Project/testing_binaries
path: testing_binaries
- name: Install Tarpaulin
run: cargo install cargo-tarpaulin
- name: Run Tarpaulin
run: cargo tarpaulin --ignore-tests -l --all --out Xml
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4.2.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ target
Cargo.lock
target
tarpaulin-report.html
*.xml
testing_binaries/

0 comments on commit d4b6902

Please sign in to comment.