mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 07:09:59 +00:00
add tarpaulin badge JSON export and include in output directory
This commit is contained in:
parent
a5a5eeda87
commit
41f404b840
8
.github/workflows/docs-and-testcov.yml
vendored
8
.github/workflows/docs-and-testcov.yml
vendored
@ -51,11 +51,19 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Export tarpaulin coverage badge JSON
|
||||
run: |
|
||||
jq '{schemaVersion: 1,
|
||||
label: "tarpaulin",
|
||||
message: (.coverage | tostring),
|
||||
color: "blue"}' tarpaulin-report.json > tarpaulin-badge.json
|
||||
|
||||
- name: Copy files to output directory
|
||||
run: |
|
||||
mkdir output
|
||||
cp tarpaulin-report.html target/doc/rustframe/
|
||||
cp tarpaulin-report.json target/doc/rustframe/
|
||||
cp tarpaulin-badge.json target/doc/rustframe/
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=rustframe\">" > target/doc/index.html
|
||||
|
||||
- name: Upload Pages artifact
|
||||
|
Loading…
x
Reference in New Issue
Block a user