Skip to content

Commit

Permalink
Check test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
YushiOMOTE committed Nov 23, 2019
1 parent 382133e commit 0be4489
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
- 6379:6379
options: --entrypoint redis-server

env:
NO_REDIS: 1
RUST_TEST_THREADS: 1
SAMPLE_COUNT: 10

steps:
- uses: actions/checkout@v1
- name: Build
Expand All @@ -23,22 +28,24 @@ jobs:
- name: Run tests (with items)
run: cargo test --verbose
env:
NO_REDIS: 1
RUST_TEST_THREADS: 1
SAMPLE_COUNT: 10000
- name: Run tests (without items)
run: cargo test --verbose
env:
NO_REDIS: 1
SAMPLE_COUNT: 0
RUST_TEST_THREADS: 1
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Test nightly (with readme)
run: cargo test --verbose --features readme
- name: Test for coverage
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
NO_REDIS: 1
SAMPLE_COUNT: 10
RUST_TEST_THREADS: 1
CARGO_INCREMENTAL: 0
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads
- uses: actions-rs/grcov@v0.1

0 comments on commit 0be4489

Please sign in to comment.