Repository navigation
60 lines (57 loc) · 2.01 KB
/
Copy pathmutation.yml
File metadata and controls
60 lines (57 loc) · 2.01 KB
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
57
58
59
60
name: mutation
# Non-blocking mutation report for assertion quality. Not part of merge-gate.
on:
schedule:
- cron: '17 4 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
stryker-configuration:
runs-on: windows-latest
timeout-minutes: 90
continue-on-error: true
steps:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
dotnet-version: |
10.0.x
- name: Restore Configuration projects
shell: pwsh
run: |
dotnet restore src/Titanium.Web.Proxy.Configuration/Titanium.Web.Proxy.Configuration.csproj
dotnet restore tests/Titanium.Web.Proxy.Configuration.Tests/Titanium.Web.Proxy.Configuration.Tests.csproj
- name: Install Stryker
shell: pwsh
continue-on-error: true
run: |
dotnet tool install --tool-path .stryker/tools dotnet-stryker
if ($LASTEXITCODE -ne 0) {
Write-Host "Stryker install failed; mutation report skipped."
exit 0
}
- name: Mutate Configuration
shell: pwsh
continue-on-error: true
run: |
$stryker = Join-Path $PWD '.stryker/tools/dotnet-stryker.exe'
if (-not (Test-Path -LiteralPath $stryker)) {
Write-Host "Stryker binary missing; mutation report skipped."
exit 0
}
New-Item -ItemType Directory -Force -Path artifacts/mutation | Out-Null
& $stryker `
--project-file src/Titanium.Web.Proxy.Configuration/Titanium.Web.Proxy.Configuration.csproj `
--test-project tests/Titanium.Web.Proxy.Configuration.Tests/Titanium.Web.Proxy.Configuration.Tests.csproj `
--reporter html `
--reporter json `
--output artifacts/mutation
exit 0
- name: Upload mutation report
if: always()
uses: actions/upload-artifact@v7
with:
name: mutation-configuration
path: artifacts/mutation/**
if-no-files-found: ignore