File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,26 @@ jobs:
13
13
coverage :
14
14
name : Coverage
15
15
timeout-minutes : 30
16
- runs-on : ubuntu-latest
16
+ runs-on : ubuntu-20.04
17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
- uses : actions-rs/toolchain@v1
20
20
with :
21
- toolchain : stable
21
+ toolchain : nightly
22
22
override : true
23
- - name : Skip network tests on Ubuntu
24
- # Ubuntu runners don't have network or DNS configured during test steps
25
- run : echo "ZEBRA_SKIP_NETWORK_TESTS=1" >> $GITHUB_ENV
26
- - name : Run cargo-tarpaulin
27
- uses :
actions-rs/[email protected]
28
- with :
29
- version : ' 0.16.0'
30
- timeout : 600
23
+ profile : minimal
24
+ components : llvm-tools-preview
25
+ - name : Install rustfilt symbol demangler
26
+ run : cargo install rustfilt
27
+ - name : Rerun tests for coverage
28
+ run : cargo test
29
+ env :
30
+ RUSTFLAGS : -Zinstrument-coverage
31
+ LLVM_PROFILE_FILE : " ${{ github.workspace }}/test.%p.profraw"
32
+ ZEBRA_SKIP_NETWORK_TESTS : 1
33
+ - name : Merge coverage data
34
+ run : $(rustc --print target-libdir)/../bin/llvm-profdata merge --sparse test.*.profraw -o test.profdata
35
+ - name : Generate coverage report
36
+ run : $(rustc --print target-libdir)/../bin/llvm-cov export -format=lcov -instr-profile=test.profdata $(find target/debug/deps -type f -perm -u+x ! -name '*.so') > "lcov.info"
31
37
- name : Upload coverage report to Codecov
32
- uses : codecov/codecov-action@v1.0.15
38
+ uses : codecov/codecov-action@v1
You can’t perform that action at this time.
0 commit comments