-
Notifications
You must be signed in to change notification settings - Fork 63
35 lines (34 loc) · 1.13 KB
/
step-mutation-testing.yml
File metadata and controls
35 lines (34 loc) · 1.13 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
on:
workflow_call:
inputs:
comparison:
type: string
description: 'The comparison to use for the mutation testing'
required: true
env:
MAJOR_DOTNET_VERSION: 8
TestPath: /home/runner/work/Html2Markdown/Html2Markdown/test/Html2Markdown.Test/Files/
STRYKER_VERSION: 4.8.1
jobs:
mutation-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5
with:
dotnet-version: ${{ env.MAJOR_DOTNET_VERSION }}.0.x
- name: Install Stryker
run: |
dotnet tool install -g dotnet-stryker --version $STRYKER_VERSION
- name: Run Stryker
run: |
dotnet stryker --since:${{ inputs.comparison }}
- name: Upload Report
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: Mutation-Report
path: ./StrykerOutput/*/reports/mutation-report.html