Skip to content

Commit 41e06e4

Browse files
Run mutation tests on Windows
As discovered in #1738, there's an issue with Stryker with .NET 8 that breaks it on Linux and macOS, so run on Windows until that's resolved.
1 parent 41d4e8d commit 41e06e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
name: ${{ matrix.os }}
2626
runs-on: ${{ matrix.os }}
2727

28+
env:
29+
# HACK Running on Windows instead of Linux due to https://github.com/stryker-mutator/stryker-net/issues/2741
30+
RUN_MUTATION_TESTS: ${{ matrix.os_name == 'windows' && !startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }}
31+
2832
strategy:
2933
fail-fast: false
3034
matrix:
@@ -57,8 +61,6 @@ jobs:
5761
- name: Build, Test and Package
5862
shell: pwsh
5963
run: ./build.ps1
60-
env:
61-
RUN_MUTATION_TESTS: ${{ matrix.os_name == 'linux' && !startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }}
6264

6365
- name: Upload Coverage Reports
6466
if: always()
@@ -75,7 +77,7 @@ jobs:
7577
flags: ${{ matrix.os_name }}
7678

7779
- name: Upload Mutation Report
78-
if: always() && matrix.os_name == 'linux' && !startsWith(github.ref, 'refs/tags/')
80+
if: always() && env.RUN_MUTATION_TESTS == 'true'
7981
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
8082
with:
8183
name: mutation-report

0 commit comments

Comments
 (0)