You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
web: add the scheduled Stryker mutation-testing workflow #190
Add the scheduled Mutation Testing workflow for web/. #189 adds the StrykerJS configuration (web/stryker.config.mjs) and pnpm test:mutation. Oly workers cannot push files in .github/workflows/, so the workflow file is not in that PR.
What to do
Commit the file below as .github/workflows/mutation.yml. This needs a person with workflow-write permission.
Start it one time with workflow_dispatch. Make sure that the mutation-report artifact contains mutation.html and mutation.json.
Change "Mutation testing" in web/README.md and the "Bundle size and mutation testing" list in web/AGENTS.md, so that they do not say that the workflow is pending.
The workflow runs every Monday at 04:00 UTC and on workflow_dispatch. It has no pull_request trigger. Do not make it a required check.
.github/workflows/mutation.yml:
name: Mutation Testing# Not a PR check: do not add a pull_request trigger or make it required.on:
schedule:
- cron: "0 4 * * 1"# Mondays 04:00 UTCworkflow_dispatch:
permissions:
contents: readconcurrency:
group: mutation-testingcancel-in-progress: truejobs:
stryker:
runs-on: ubuntu-latesttimeout-minutes: 60defaults:
run:
working-directory: websteps:
- uses: actions/checkout@v7
- name: Setup pnpm and Node# Gets node version from web/.nvmrc and pnpm version from `packageManager` in web/package.jsonuses: pnpm/setup@v3with:
working-directory: webcache: trueinstall: false
- name: Install dependenciesrun: pnpm install --frozen-lockfile
- name: Run Strykerrun: pnpm test:mutation
- name: Upload mutation reportif: always()uses: actions/upload-artifact@v7with:
name: mutation-reportpath: | web/reports/mutation/mutation.html web/reports/mutation/mutation.jsonif-no-files-found: warnretention-days: 30
Activity
web: say the scheduled mutation workflow is pending, fix quarantine c…