Skip to content

Commit df133fa

Browse files
committed
test coverage
1 parent 2c75d82 commit df133fa

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/ci.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535
run: cargo build
3636
coverage:
3737
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'coverage')
38-
needs: [test]
38+
needs: [build]
3939
runs-on: ubuntu-latest
4040
env:
4141
RUST_LOG: debug
42-
RUSTFLAGS: -Cinstrument-coverage -Dwarnings
42+
RUSTFLAGS: -Cinstrument-coverage
4343
steps:
4444
- uses: actions/checkout@v2
4545
- uses: Swatinem/rust-cache@v1
@@ -55,6 +55,10 @@ jobs:
5555
run: LLVM_PROFILE_FILE="zookeeper-client-%p-%m.profraw" cargo test --verbose
5656
- name: Generate coverage report
5757
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
5862
lint:
5963
needs: [build]
6064
runs-on: ubuntu-latest
@@ -69,14 +73,3 @@ jobs:
6973
components: clippy
7074
- name: Lint code
7175
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

0 commit comments

Comments
 (0)