File tree 1 file changed +6
-13
lines changed
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ jobs:
35
35
run : cargo build
36
36
coverage :
37
37
if : github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'coverage')
38
- needs : [test ]
38
+ needs : [build ]
39
39
runs-on : ubuntu-latest
40
40
env :
41
41
RUST_LOG : debug
42
- RUSTFLAGS : -Cinstrument-coverage -Dwarnings
42
+ RUSTFLAGS : -Cinstrument-coverage
43
43
steps :
44
44
- uses : actions/checkout@v2
45
45
- uses : Swatinem/rust-cache@v1
55
55
run : LLVM_PROFILE_FILE="zookeeper-client-%p-%m.profraw" cargo test --verbose
56
56
- name : Generate coverage report
57
57
run : grcov $(find . -name "zookeeper-*.profraw" -print) --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
58
+ - name : Upload to codecov.io
59
+ uses : codecov/codecov-action@v2
60
+ with :
61
+ verbose : true
58
62
lint :
59
63
needs : [build]
60
64
runs-on : ubuntu-latest
69
73
components : clippy
70
74
- name : Lint code
71
75
run : cargo clippy --no-deps -- -D clippy::all
72
- release :
73
- if : github.event_name == 'push' && github.ref_type == 'tag'
74
- needs : [build, test, lint]
75
- runs-on : ubuntu-latest
76
- steps :
77
- - uses : actions/checkout@v2
78
- - uses : Swatinem/rust-cache@v1
79
- - name : publish crate
80
- env :
81
- CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
82
- run : cargo publish
You can’t perform that action at this time.
0 commit comments