File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
- branches : [ main, auto, canary ]
3
+ branches : [main, auto, canary]
4
4
pull_request :
5
5
branches :
6
6
- main
@@ -18,18 +18,23 @@ jobs:
18
18
CARGO_TERM_COLOR : always
19
19
steps :
20
20
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
21
- - uses : dtolnay/rust-toolchain@stable
21
+ # Nightly Rust is used for cargo llvm-cov --doc below.
22
+ - uses : dtolnay/rust-toolchain@nightly
22
23
with :
23
24
components : llvm-tools-preview
24
25
- uses : Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2
25
-
26
+
26
27
- name : Install latest nextest release
27
28
uses : taiki-e/install-action@nextest
28
29
- name : Install cargo-llvm-cov
29
30
uses : taiki-e/install-action@cargo-llvm-cov
30
-
31
+
31
32
- name : Collect coverage data
32
- run : cargo llvm-cov nextest --lcov --output-path lcov.info
33
+ # Generate separate reports for nextest and doctests, and combine them.
34
+ run : |
35
+ cargo llvm-cov --no-report nextest
36
+ cargo llvm-cov --no-report --doc
37
+ cargo llvm-cov report --doctests --lcov --output-path lcov.info
33
38
- name : Upload coverage data to codecov
34
39
uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
35
40
with :
You can’t perform that action at this time.
0 commit comments