Skip to content

Commit

Permalink
Use Codecov Custom Coverage Format
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Apr 29, 2024
1 parent baf6ef5 commit 1dc5bb8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,15 @@ jobs:
run: cargo install cargo-llvm-cov

- name: Run coverage
working-directory: ./aws-lc-rs
run: cargo llvm-cov --workspace --features unstable --no-fail-fast --ignore-filename-regex "aws-lc-(fips-)?sys/.*" --lcov --output-path ${{ runner.temp }}/lcov.info
run: cargo llvm-cov -p aws-lc-rs --features unstable --no-fail-fast --ignore-filename-regex "aws-lc-(fips-)?sys/.*" --codecov --output-path ${{ runner.temp }}/codecov.json
- name: Run FIPS coverage
working-directory: ./aws-lc-rs
run: cargo llvm-cov --workspace --features unstable,fips --no-fail-fast --ignore-filename-regex "aws-lc-(fips-)?sys/.*" --lcov --output-path ${{ runner.temp }}/lcov-fips.info
run: cargo llvm-cov -p aws-lc-rs --features unstable,fips --no-fail-fast --ignore-filename-regex "aws-lc-(fips-)?sys/.*" --codecov --output-path ${{ runner.temp }}/codecov-fips.json
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4
with:
files: ${{ runner.temp }}/lcov.info,${{ runner.temp }}/lcov-fips.info
files: ${{ runner.temp }}/codecov.json,${{ runner.temp }}/codecov-fips.json
verbose: true
fail_ci_if_error: true

Expand Down

0 comments on commit 1dc5bb8

Please sign in to comment.