Skip to content

Mutation Testing

Mutation Testing #6

Workflow file for this run

name: Mutation Testing
on:
workflow_dispatch:
schedule:
# Weekly, Monday 06:00 UTC — mutation runs are too slow for every push
- cron: '0 6 * * 1'
permissions:
contents: read
jobs:
mutation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
version: 11.9.0
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22.x
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- run: corepack enable
- run: pnpm install --frozen-lockfile
- name: Run Stryker on src/utils
run: pnpm test:mutation
- name: Upload mutation report
if: always()
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: mutation-report
path: reports/mutation/