Skip to content

Commit

Permalink
Add link to diff between test coverage runs
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Jan 26, 2023
1 parent 39be670 commit 6b99375
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/pit-results-comment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:
cp "${NEW_STATS_FILE}" "${PREV_STATS_FILE}"
fi
./.github/actions/pit-results-comment/stats-to-comment.sh "${PREV_STATS_FILE}" "${NEW_STATS_FILE}" "${{ inputs.prev-commit }}" > "${RESULTS_COMMENT_FILE}"
./.github/actions/pit-results-comment/stats-to-comment.sh "${PREV_STATS_FILE}" "${NEW_STATS_FILE}" "${{ inputs.prev-commit }}" "${{ github.sha }}" > "${RESULTS_COMMENT_FILE}"
curl -X POST \
-H "Authorization: Bearer ${{ inputs.token }}" \
Expand Down
9 changes: 8 additions & 1 deletion .github/actions/pit-results-comment/stats-to-comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,17 @@ EOF
"${1}" "${2}" --raw-output

if [[ -n "${3}" ]]; then
cat << EOF
if [[ -n "${4}" ]]; then
cat << EOF
Previous run: ${3}
EOF
else
cat << EOF
Previous run: ${3} - [Diff](/${GITHUB_REPOSITORY}/compare/${3}...${4})
EOF
fi

cat << EOF
Expand Down

1 comment on commit 6b99375

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mutation test results

Package Coverage Stats Prev Prev
Overall 81 % 🔹 1264 🔻 / 1554 🔹 81 % 1269 / 1554
com.yubico.fido.metadata 68 % 🔻 219 🔻 / 318 🔹 70 % 225 / 318
com.yubico.internal.util 48 % 🟢 57 🔺 / 118 🔹 47 % 56 / 118
com.yubico.webauthn 87 % 🔹 558 🔹 / 638 🔹 87 % 558 / 638
com.yubico.webauthn.attestation 92 % 🔹 13 🔹 / 14 🔹 92 % 13 / 14
com.yubico.webauthn.data 93 % 🔹 392 🔹 / 419 🔹 93 % 392 / 419
com.yubico.webauthn.extension.appid 100 % 🏆 13 🔹 / 13 🔹 100 % 13 / 13
com.yubico.webauthn.extension.uvm 50 % 🔹 12 🔹 / 24 🔹 50 % 12 / 24
com.yubico.webauthn.meta 0 % 🔹 0 🔹 / 10 🔹 0 % 0 / 10

Previous run: 39be670

Detailed reports: workflow run #198

Please sign in to comment.