Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 8, 2024
1 parent 8fa2882 commit d743c0c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,26 @@ jobs:
flags: fa-compression
verbose: true
fail_ci_if_error: true

- name: Run cargo test (sa-mappings)
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast -p sa-mappings
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'

- name: Gather coverage information (sa-mappings)
id: coverage
uses: actions-rs/[email protected]

- name: Upload coverage reports to Codecov (sa-mappings)
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ steps.coverage.outputs.report }}
flags: sa-mappings
verbose: true
fail_ci_if_error: true
12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,28 @@ coverage:
target: 90%
flags:
- fa-compression
sa-mappings:
target: 90%
flags:
- sa-mappings
patch:
default:
target: 90%
fa-compression:
target: 90%
flags:
- fa-compression
sa-mappings:
target: 90%
flags:
- sa-mappings

flags:
fa-compression:
paths:
- fa-compression
carryforward: true
sa-mappings:
paths:
- sa-mappings
carryforward: true

0 comments on commit d743c0c

Please sign in to comment.