From 9d460fe5b94f00e281fef06f8316217451cb71cf Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Mon, 29 Apr 2024 12:12:43 -0400 Subject: [PATCH] Use Codecov Custom Coverage Format --- .github/workflows/tests.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d8a13ebfe33..b4a6a93fe02 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 ./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 ./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: ./codecov.json,./codecov-fips.json verbose: true fail_ci_if_error: true