Skip to content

ci: use shared GitHub Action #123

ci: use shared GitHub Action

ci: use shared GitHub Action #123

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 ThisIsYourLife.sln
- 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/**/*.*