Skip to content

Commit cdf9887

Browse files
committed
fix: test coverage
1 parent 30ae3f7 commit cdf9887

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/rust.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,24 @@ jobs:
6666
- uses: actions/checkout@v2
6767
- uses: actions-rs/toolchain@v1
6868
with:
69-
toolchain: stable
69+
toolchain: nightly
70+
override: true
7071
- uses: actions/cache@v2
7172
with:
7273
path: |
7374
~/.cargo/registry
7475
~/.cargo/git
7576
target
7677
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
77-
- uses: actions-rs/[email protected]
78+
- uses: actions-rs/cargo@v1
7879
with:
79-
args: '-- --test-threads 1'
80+
command: test
81+
args: --all-features --no-fail-fast
82+
env:
83+
CARGO_INCREMENTAL: '0'
84+
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
85+
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
86+
- uses: actions-rs/[email protected]
8087
- uses: codecov/codecov-action@v1
8188
with:
8289
fail_ci_if_error: true

0 commit comments

Comments
 (0)