Try json coverage
This commit is contained in:
parent
7927fbfb0a
commit
09333f6407
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue