Skip to content

Commit

Permalink
Use lcov format when sending coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Jun 5, 2022
1 parent 015079b commit dc180b1
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 dc180b1

Please sign in to comment.