Skip to content

Commit

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

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

- name: Install grcov
run: cargo install grcov

- name: debug
run: |
pwd
ls -hAl
- 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 . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
run: >
grcov target/coverage/ -s . --binary-path target/debug/ -t lcov --branch
--ignore '../*' --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
Expand Down

0 comments on commit deff5b4

Please sign in to comment.