Skip to content

Commit 99d1519

Browse files
committed
Fix test workflow
1 parent 6850871 commit 99d1519

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/test.yaml

+6-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ jobs:
3838
args: --locked --all-features --no-fail-fast
3939
env:
4040
CARGO_INCREMENTAL: '0'
41-
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
42-
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
43-
- uses: actions-rs/[email protected]
44-
id: grcov
45-
with:
46-
config: grcov.yaml
41+
RUSTFLAGS: '-Cinstrument-coverage'
42+
RUSTDOCFLAGS: '-Cinstrument-coverage'
43+
LLVM_PROFILE_FILE: 'nicator-%p-%m.profraw'
44+
- run: cargo install grcov
45+
- run: grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o coverage
4746
- uses: coverallsapp/[email protected]
4847
with:
4948
github-token: ${{ secrets.GITHUB_TOKEN }}
50-
path-to-lcov: ${{ steps.grcov.outputs.report }}
49+
path-to-lcov: coverage

grcov.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
branch: true
22
llvm: true
33
ignore-not-existing: true
4+
binary-path: "nicator/target/debug/"
5+
source-dir: "nicator"
46
ignore:
57
- "/usr/*"
68
- "/home/runner/.cargo/*"

0 commit comments

Comments
 (0)