Skip to content

Commit d96fce3

Browse files
committed
x
1 parent 4c5eb24 commit d96fce3

2 files changed

Lines changed: 10 additions & 19 deletions

File tree

.github/actions-rs/grcov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
output-type: lcov
2+
output-file: ./lcov.info

.github/workflows/rust.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,18 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19-
- name: Install dependencies
20-
run: |
21-
sudo apt-get install -y llvm
22-
cargo install grcov
2319
- name: Build
2420
run: cargo build --verbose
2521
- name: Run tests
2622
run: cargo test --verbose
2723

28-
- name: Generate coverage report
29-
run: |
30-
grcov . \
31-
--binary-path ./target/debug/ \
32-
-s . \
33-
-t lcov \
34-
--llvm \
35-
--branch \
36-
--ignore-not-existing \
37-
-o ./coverage/lcov.info
38-
- name: Codecov
39-
- uses: codecov/codecov-action@v5
24+
- name: rust-grcov
25+
uses: actions-rs/grcov@v0.1
26+
- name: Codecov
27+
uses: codecov/codecov-action@v5
4028
with:
41-
file: ./coverage/lcov.info
42-
flags: unittests
43-
name: codecov-umbrella
29+
# Repository upload token - get it from codecov.io. Required only for private repositories
30+
# token: # optional
31+
# Specify whether the Codecov output should be verbose
32+
verbose: true
4433
fail_ci_if_error: true

0 commit comments

Comments
 (0)