Repository navigation
fix(business-days): stop the day walk from hanging in five time zones, and show the month recipe #408
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mutation tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| # A newer push to a pull request supersedes its run; a push to main always finishes, so the | |
| # badges never show a cancelled run as failing. | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| mutation: | |
| name: Stryker | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Mutation test every file | |
| if: ${{ github.event_name != 'push' }} | |
| run: npm run test:mutation | |
| # On `main` the dashboard reporter also publishes the score to dashboard.stryker-mutator.io; | |
| # pull requests keep the local reporters only, so a fork never needs the key. | |
| - name: Mutation test every file and publish the score | |
| if: ${{ github.event_name == 'push' }} | |
| env: | |
| STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
| run: npm run test:mutation -- --reporters clear-text,progress,html,json,dashboard | |
| - name: Upload the mutation report | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: mutation-report | |
| path: reports/mutation | |
| if-no-files-found: ignore |