Skip to content

Commit

Permalink
Run mutation test workflow on release-* branches
Browse files Browse the repository at this point in the history
But still update the badge and previous result only on the main branch.
  • Loading branch information
emlun committed Feb 19, 2024
1 parent ca9b2f6 commit fefbfd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Test coverage

on:
push:
branches: [main]
branches:
- main
- 'release-*'

jobs:
test:
Expand Down Expand Up @@ -45,6 +47,7 @@ jobs:
sed "s/{shortcommit}/${GITHUB_SHA:0:8}/g;s/{commit}/${GITHUB_SHA}/g;s#{repo}#${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}#g" .github/workflows/coverage/index.html.template > build/gh-pages/index.html
- name: Create coverage badge
if: ${{ github.ref == 'refs/heads/main' }}
# This creates a file that defines a [Shields.io endpoint badge](https://shields.io/endpoint)
# which we can then include in the project README.
uses: ./.github/actions/pit-results-badge
Expand All @@ -69,6 +72,7 @@ jobs:
prev-mutations-file: prev-mutations.xml

- name: Push to GitHub Pages
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
Expand Down

1 comment on commit fefbfd3

@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 80 % 🔻 1282 🔻 / 1583 🔻 82 % 1362 / 1656
com.yubico.fido.metadata 68 % 🔹 222 🔹 / 323 🔹 68 % 222 / 323
com.yubico.internal.util 47 % 🟢 57 🔹 / 120 🔻 46 % 57 / 123
com.yubico.webauthn 86 % 🔻 570 🔻 / 656 🔻 89 % 642 / 720
com.yubico.webauthn.attestation 92 % 🔹 13 🔹 / 14 🔹 92 % 13 / 14
com.yubico.webauthn.data 93 % 🔻 395 🔻 / 423 🔻 93 % 403 / 429
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: a149b6e - Diff

Detailed reports: workflow run #260

Please sign in to comment.