Skip to content

Commit

Permalink
Merge pull request #392 from Mingun/coverage-lcov
Browse files Browse the repository at this point in the history
Use lcov format when sending coverage results
  • Loading branch information
Mingun authored Jun 5, 2022
2 parents 015079b + dc180b1 commit 02ba9a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,19 @@ jobs:
run: cargo test --features serialize,escape-html
- name: Prepare coverage information for upload
if: runner.os == 'Linux'
# --token is required by grcov, but not required by coveralls.io, so pass
# something to get it work. See https://github.com/mozilla/grcov/issues/833
run: |
grcov ./coverage \
-s . \
--binary-path ./target/debug/ \
--branch \
--ignore-not-existing \
--ignore 'tests/*' \
-t coveralls+ \
--token ? \
-o ./coveralls.json
-o ./coverage.lcov
- name: Upload coverage to codecov.io
if: runner.os == 'Linux'
uses: codecov/codecov-action@v2
with:
files: ./coveralls.json
files: ./coverage.lcov
flags: unittests
verbose: true
continue-on-error: true
Expand Down

0 comments on commit 02ba9a8

Please sign in to comment.