File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
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
@@ -22,14 +22,18 @@ jobs:
22
22
with :
23
23
components : llvm-tools-preview
24
24
- uses : Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2
25
-
25
+
26
26
- name : Install latest nextest release
27
27
uses : taiki-e/install-action@nextest
28
28
- name : Install cargo-llvm-cov
29
29
uses : taiki-e/install-action@cargo-llvm-cov
30
-
30
+
31
31
- name : Collect coverage data
32
- run : cargo llvm-cov nextest --lcov --output-path lcov.info
32
+ # Generate separate reports for nextest and doctests, and combine them.
33
+ run : |
34
+ cargo llvm-cov --no-report nextest
35
+ cargo llvm-cov --no-report --doc
36
+ cargo llvm-cov report --doctests --lcov --output-path lcov.info
33
37
- name : Upload coverage data to codecov
34
38
uses : codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
35
39
with :
You can’t perform that action at this time.
0 commit comments