Change workflow to trigger on PR on any branch (#453) #328
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 ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
AppVeyorBuild: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 9 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-quality: preview | |
dotnet-version: 9.0.x | |
- name: Install Stryker | |
run: dotnet tool install -g dotnet-stryker | |
- name: Build | |
working-directory: src/Tests/Stryker/Tests | |
run: dotnet build -c Debug | |
- name: Test | |
working-directory: src/Tests/Stryker/Tests | |
run: dotnet test -c Debug | |
- name: Mutate | |
working-directory: src/Tests/Stryker/Tests | |
run: dotnet-stryker | |
- name: Upload Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Stryker Results | |
path: ./**/StrykerOutput/**/*.* |