Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbus committed Feb 23, 2024
1 parent c0a5d59 commit b612e51
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,28 @@ jobs:
- name: Setup rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, llvm-tools-preview
override: true
profile: minimal
toolchain: stable
components: llvm-tools-preview

- name: Run tests
env:
RUSTFLAGS: "-Cinstrument-coverage"
CARGO_INCREMENTAL: "0"
#LLVM_PROFILE_FILE: "target/coverage/%p-%m.profraw"
RUSTDOCFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "target/coverage/%p-%m.profraw"
run: cargo test
RUSTFLAGS: "-Cinstrument-coverage"
run: cargo test issue

- name: Install grcov
run: cargo install grcov

- name: Generate coverage report
run: >
grcov target/coverage -s . --binary-path target/debug/ -t lcov --branch
--ignore 'target/*' --ignore 'tests/*' --ignore-not-existing -o coverage.lcov
#run: >
# grcov target/coverage -s . --binary-path target/debug/ -t lcov --branch
# --ignore 'target/*' --ignore 'tests/*' --ignore-not-existing -o coverage.lcov
run: grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov


- name: Upload coverage report
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit b612e51

Please sign in to comment.