-
-
Notifications
You must be signed in to change notification settings - Fork 51
56 lines (46 loc) · 1.59 KB
/
stryker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Mutation Testing
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
env:
AppVeyorBuild: true
steps:
- uses: actions/checkout@v2
- name: Setup .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Install Stryker
run: dotnet tool install -g dotnet-stryker
- name: Build FlatSharp.Compiler
working-directory: src/FlatSharp.Compiler
run: dotnet build -c Release
- name: Run FlatSharp.Compiler (Mutation Tests)
# You may pin to the exact commit or the version.
# uses: Amadevus/pwsh-script@97a8b211a5922816aa8a69ced41fa32f23477186
uses: Amadevus/[email protected]
with:
# PowerShell script to execute in Actions-hydrated context
script: |
$fbs = (gci -r src/tests/Stryker/*.fbs) -join ";"
dotnet src/FlatSharp.Compiler/bin/Release/net7.0/FlatSharp.Compiler.dll --nullable-warnings false --normalize-field-names true --input "$fbs" -o src/tests/Stryker/CodeGen --mutation-testing-mode
- name: Build
working-directory: src/Tests/Stryker/Tests
run: dotnet build -c Release
- name: Test
working-directory: src/Tests/Stryker/Tests
run: dotnet test -c Release
- name: Mutate
working-directory: src/Tests/Stryker/Tests
run: dotnet-stryker
- name: Upload Results
uses: actions/upload-artifact@v2
with:
name: Stryker Results
path: ./**/StrykerOutput/**/*.*