Skip to content

Commit 2c75d82

Browse files
committed
test coverage
1 parent 40c0a18 commit 2c75d82

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

.github/workflows/ci.yml

+2-20
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,12 @@ jobs:
3333
override: true
3434
- name: Build code
3535
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
5136
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')
5338
needs: [test]
5439
runs-on: ubuntu-latest
5540
env:
41+
RUST_LOG: debug
5642
RUSTFLAGS: -Cinstrument-coverage -Dwarnings
5743
steps:
5844
- uses: actions/checkout@v2
@@ -69,10 +55,6 @@ jobs:
6955
run: LLVM_PROFILE_FILE="zookeeper-client-%p-%m.profraw" cargo test --verbose
7056
- name: Generate coverage report
7157
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
7658
lint:
7759
needs: [build]
7860
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)