File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 8
8
- main
9
9
10
10
jobs :
11
- test :
12
- name : coverage
11
+ coverage :
13
12
runs-on : ubuntu-latest
14
- container :
15
- image : xd009642/tarpaulin:develop-nightly
16
- options : --security-opt seccomp=unconfined
13
+ env :
14
+ CARGO_TERM_COLOR : always
17
15
steps :
18
16
- name : Checkout repository
19
17
uses : actions/checkout@v4
20
- with :
21
- submodules : true
18
+ - name : Install Rust
19
+ run : rustup update stable
20
+ - name : Install cargo-llvm-cov
21
+ uses : taiki-e/install-action@cargo-llvm-cov
22
22
- name : Generate code coverage
23
- run : |
24
- cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
23
+ run : cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
25
24
- name : Upload to codecov.io
26
25
uses : codecov/codecov-action@v4
27
- env :
28
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
29
26
with :
27
+ # token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
28
+ files : lcov.info
30
29
fail_ci_if_error : true
31
30
check :
32
31
name : Lint/Format Check
You can’t perform that action at this time.
0 commit comments