chore(release): 3.1.0 #178
This file contains 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: | |
push: | |
branches: | |
- main | |
jobs: | |
mutation-testing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
- name: Restore dependencies | |
run: dotnet restore ScreenshotCreator.sln | |
- name: Build | |
run: dotnet build --no-restore ScreenshotCreator.sln | |
- name: Install Playwright for tests | |
run: 'src/ScreenshotCreator.Api/bin/Debug/net9.0/playwright.ps1 install chromium' | |
shell: pwsh | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Run mutation testing | |
run: dotnet stryker --dashboard-api-key "${{ secrets.STRYKER_DASHBOARD_API_KEY }}" --version "${{ github.ref_name }}" --config-file stryker-config.json | |
- name: Archive mutation testing results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mutation-testing-report | |
path: StrykerOutput/**/*.* |