Skip to content

Commit

Permalink
Merge pull request #4 from nekoraw/master
Browse files Browse the repository at this point in the history
Add code coverage and upload to Codecov jobs
  • Loading branch information
Dwctor authored Jun 18, 2024
2 parents c059b1a + 88ca8ac commit 16b5fd5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ env:
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --codecov --output-path codecov.json --ignore-filename-regex main
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: codecov.json
fail_ci_if_error: true

0 comments on commit 16b5fd5

Please sign in to comment.