Skip to content

Commit 3fe3079

Browse files
committed
Added code coverage to CI
1 parent 74ceec5 commit 3fe3079

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,18 @@ jobs:
5858
default: true
5959
- name: cargo test
6060
run: "cargo test --all ${{matrix.stability}}"
61+
- name: cargo test
62+
if: ${{ matrix.toolchain != 'nightly' || matrix.stability != '' }}
63+
run: "cargo test --all ${{matrix.stability}}"
64+
- name: cargo test
65+
if: ${{ matrix.toolchain == 'nightly' && matrix.stability == '' }}
66+
run: "cargo test --no-fail-fast --all"
67+
env:
68+
CARGO_INCREMENTAL: "0"
69+
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
70+
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
71+
- id: coverage
72+
name: coverage report
73+
if: ${{ matrix.toolchain == 'nightly' && matrix.stability == '' }}
74+
uses: actions-rs/[email protected]
75+
- name: upload to codecov

0 commit comments

Comments
 (0)