Mutation Testing #8
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 Testing | |
| on: | |
| schedule: | |
| - cron: '0 4 * * 1' # Weekly Monday 4am UTC | |
| workflow_dispatch: # Manual trigger | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: mutation-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| DOTNET_NOLOGO: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| NUKE_TELEMETRY_OPTOUT: true | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| mutation-test: | |
| name: Stryker.NET Mutation Testing (${{ matrix.profile }}) | |
| runs-on: macos-latest | |
| timeout-minutes: 120 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| profile: [core, runtime, ai] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 | |
| with: | |
| dotnet-version: '10.0.x' | |
| dotnet-quality: 'preview' | |
| - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: ${{ runner.os }}-nuget- | |
| - name: Restore .NET tools | |
| run: dotnet tool restore | |
| - name: Run mutation testing via Nuke orchestration (${{ matrix.profile }}) | |
| run: ./build.sh --target MutationTest --configuration Release --mutation-profile ${{ matrix.profile }} | |
| - name: Upload mutation report (${{ matrix.profile }}) | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| if: always() | |
| with: | |
| name: mutation-report-${{ matrix.profile }} | |
| path: artifacts/mutation-report/${{ matrix.profile }}/ | |
| if-no-files-found: warn |