Skip to content

Commit

Permalink
Tack test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogeon committed Sep 1, 2023
1 parent aae68da commit 67279cf
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
pull_request:
branches:
- master
paths:
- '**.rs'
push:
branches:
- master
paths:
- '**.rs'

name: Test coverage

jobs:
coverage:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@nightly
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Collect code coverage
run: cargo +nightly llvm-cov --all-features --workspace --exclude no_std_test --codecov --doctests --output-path codecov.json
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json

0 comments on commit 67279cf

Please sign in to comment.