Skip to content

Commit d474e09

Browse files
authored
Add initial Codecov configuration (#671)
1 parent 665e6e9 commit d474e09

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

‎.codecov.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
patch:
7+
default:
8+
informational: true
9+
10+
comment:
11+
layout: "header, diff, components, files"
12+
13+
component_management:
14+
individual_components:
15+
- component_id: ssh-cipher
16+
paths:
17+
- ssh-cipher/src/**
18+
- component_id: ssh-derive
19+
paths:
20+
- ssh-derive/src/**
21+
- component_id: ssh-encoding
22+
paths:
23+
- ssh-encoding/src/**
24+
- component_id: ssh-key
25+
paths:
26+
- ssh-key/src/**

‎.github/workflows/workspace.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ jobs:
3030
components: clippy
3131
- run: cargo clippy --all-features --all-targets
3232

33+
coverage:
34+
runs-on: ubuntu-latest
35+
permissions:
36+
contents: read
37+
steps:
38+
- uses: actions/checkout@v7
39+
- uses: dtolnay/rust-toolchain@stable
40+
with:
41+
components: llvm-tools
42+
- uses: taiki-e/install-action@cargo-llvm-cov
43+
- run: cargo llvm-cov --workspace --all-features --locked --lcov --output-path lcov.info
44+
- uses: codecov/codecov-action@v7
45+
with:
46+
files: lcov.info
47+
disable_search: true
48+
fail_ci_if_error: true
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
3351
doc:
3452
runs-on: ubuntu-latest
3553
steps:

0 commit comments

Comments
 (0)