Try json coverage

This commit is contained in:
Deirdre Connolly 2021-06-11 16:49:13 -04:00
parent 7927fbfb0a
commit 09333f6407
1 changed files with 7 additions and 4 deletions

View File

@ -94,13 +94,16 @@ jobs:
run: |
$(rustc --print target-libdir)/../bin/llvm-cov show -format=html -ignore-filename-regex=".*/.cargo/registry/.*" -ignore-filename-regex=".*/.cargo/git/.*" -ignore-filename-regex=".*/.rustup/.*" -Xdemangler=rustfilt -show-instantiations -output-dir=./coverage -instr-profile=./test.profdata $(printf -- "-object %s " $(cat filenames.txt))
- name: Generate json coverage report for codecov
run: |
$(rustc --print target-libdir)/../bin/llvm-cov export -format=text -instr-profile=test.profdata $(printf -- "-object %s " $(cat filenames.txt)) > "lcov.info"
- uses: actions/upload-artifact@v2
with:
name: coverage
path: ./coverage
path: |
./coverage
./lcov.info
- name: Generate lcov coverage report for codecov
run: |
$(rustc --print target-libdir)/../bin/llvm-cov export -format=lcov -instr-profile=test.profdata $(printf -- "-object %s " $(cat filenames.txt)) > "lcov.info"
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v1.5.2