-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1 KB
/
Copy pathMutationTesting.yml
File metadata and controls
39 lines (31 loc) · 1 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
name: Mutation Testing
on:
push:
pull_request:
workflow_dispatch:
jobs:
mutation-test:
runs-on: ubuntu-latest
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Nerdbank.GitVersioning needs full history to compute the version
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install Stryker.NET
run: dotnet tool install -g dotnet-stryker
- name: Run mutation tests
run: |
cd src/Z21.Client.UnitTest
dotnet stryker --reporter html --output ../../stryker-report --mutation-level Advanced --threshold-high 90 --threshold-low 80 --break-at 75
- name: Upload HTML report
uses: actions/upload-artifact@v4
with:
name: stryker-html-report
path: stryker-report/reports/mutation-report.html