Skip to content

Commit 4114c07

Browse files
authored
Add Codecov configuration (#183)
Should be available at https://codecov.io/gh/RustCrypto/hybrid-array when enabled
1 parent 1cccda2 commit 4114c07

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage:
2+
status:
3+
patch: off

.github/workflows/hybrid-array.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ jobs:
5757
components: clippy
5858
- run: cargo clippy --all-targets --all-features -- -D warnings
5959

60+
# Generate code coverage and report to codecov.io
61+
coverage:
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v6
65+
- uses: dtolnay/rust-toolchain@stable
66+
with:
67+
components: llvm-tools
68+
- uses: taiki-e/install-action@cargo-llvm-cov
69+
- run: cargo llvm-cov --all-features --lcov --output-path lcov.info
70+
env:
71+
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
72+
- uses: codecov/codecov-action@v5
73+
with:
74+
fail_ci_if_error: true
75+
6076
doc:
6177
runs-on: ubuntu-latest
6278
steps:

0 commit comments

Comments
 (0)