Skip to content

chore: add Solutions Items #139

chore: add Solutions Items

chore: add Solutions Items #139

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/net8.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/**/*.*