From 16ef4deef1813188b65c0acd12e925b83d90a50a Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 30 Mar 2026 08:56:14 -0600 Subject: [PATCH] Add Codecov configuration Should be available at https://codecov.io/gh/RustCrypto/hybrid-array when enabled --- .codecov.yml | 3 +++ .github/workflows/hybrid-array.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..fa348a8 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,3 @@ +coverage: + status: + patch: off diff --git a/.github/workflows/hybrid-array.yml b/.github/workflows/hybrid-array.yml index 70df483..6fa7ca7 100644 --- a/.github/workflows/hybrid-array.yml +++ b/.github/workflows/hybrid-array.yml @@ -57,6 +57,22 @@ jobs: components: clippy - run: cargo clippy --all-targets --all-features -- -D warnings + # Generate code coverage and report to codecov.io + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@stable + with: + components: llvm-tools + - uses: taiki-e/install-action@cargo-llvm-cov + - run: cargo llvm-cov --all-features --lcov --output-path lcov.info + env: + CARGO_HUSKY_DONT_INSTALL_HOOKS: true + - uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: true + doc: runs-on: ubuntu-latest steps: