Skip to content

fix(.github/codecov): Ignore aws-lc-rs-fips for codecov #580

fix(.github/codecov): Ignore aws-lc-rs-fips for codecov

fix(.github/codecov): Ignore aws-lc-rs-fips for codecov #580

Workflow file for this run

name: Coverage
on:
push:
branches: ['main', '0.8.x']
pull_request:
jobs:
coverage:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-llvm-cov
- shell: bash
run: |
LLVMCOV_FEATURES=$(cargo metadata --format-version 1 --no-deps \
| jq -r '[ .packages[].features | keys[] | select(. != "default" and . != "aws-lc-rs-fips") ] | unique | join(",")')
cargo llvm-cov --features="$LLVMCOV_FEATURES" --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true