File tree 1 file changed +2
-20
lines changed
1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -33,26 +33,12 @@ jobs:
33
33
override : true
34
34
- name : Build code
35
35
run : cargo build
36
- test :
37
- needs : [build]
38
- runs-on : ubuntu-latest
39
- env :
40
- RUST_LOG : debug
41
- steps :
42
- - uses : actions/checkout@v2
43
- - uses : Swatinem/rust-cache@v1
44
- - name : Install rust stable
45
- uses : actions-rs/toolchain@v1
46
- with :
47
- toolchain : stable
48
- override : true
49
- - name : Test code
50
- run : cargo test -- --nocapture
51
36
coverage :
52
- if : github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master ')
37
+ if : github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'coverage ')
53
38
needs : [test]
54
39
runs-on : ubuntu-latest
55
40
env :
41
+ RUST_LOG : debug
56
42
RUSTFLAGS : -Cinstrument-coverage -Dwarnings
57
43
steps :
58
44
- uses : actions/checkout@v2
69
55
run : LLVM_PROFILE_FILE="zookeeper-client-%p-%m.profraw" cargo test --verbose
70
56
- name : Generate coverage report
71
57
run : grcov $(find . -name "zookeeper-*.profraw" -print) --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
72
- - name : Upload to codecov.io
73
- uses : codecov/codecov-action@v2
74
- with :
75
- verbose : true
76
58
lint :
77
59
needs : [build]
78
60
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments