mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-10-04 17:49:25 +00:00
add tarpaulin badge JSON export and include in output directory
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user