-
Notifications
You must be signed in to change notification settings - Fork 63
37 lines (36 loc) · 1.17 KB
/
step-mutation-testing.yml
File metadata and controls
37 lines (36 loc) · 1.17 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
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # 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
env:
COMPARISON: ${{ inputs.comparison }}
run: |
dotnet stryker --since:$COMPARISON
- name: Upload Report
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: Mutation-Report
path: ./StrykerOutput/*/reports/mutation-report.html