Skip to content

Commit

Permalink
Add codecov.io coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Oct 31, 2023
1 parent 3ec4e76 commit d001174
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- uses: actions/checkout@v3
- name: Install prerequisites
run: sudo apt-get -y install libsdl2-dev
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Fetch submodules
run: git submodule update --init --recursive
- name: Checkout souper_tests
Expand All @@ -30,3 +32,12 @@ jobs:
run: cargo build --verbose --release
- name: Run tests
run: cargo test --verbose
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
fail_ci_if_error: true

0 comments on commit d001174

Please sign in to comment.