-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mutation testing to feature branches
Closes #502
- Loading branch information
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
comparison: | ||
type: string | ||
description: 'The comparison to use for the mutation testing' | ||
required: true | ||
env: | ||
MAJOR_DOTNET_VERSION: 8 | ||
|
||
jobs: | ||
mutation-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ env.MAJOR_DOTNET_VERSION }}.0.x | ||
- name: Install Stryker | ||
run: | | ||
dotnet tool install -g dotnet-stryker | ||
- name: Run Stryker | ||
run: | | ||
dotnet stryker --since:${{ inputs.comparison }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"stryker-config": | ||
{ | ||
"solution": "Html2Markdown.sln", | ||
"project": "Html2Markdown.csproj", | ||
"thresholds": { | ||
"high": 95, | ||
"low": 85, | ||
"break": 80 | ||
}, | ||
"since": { | ||
"target": "develop", | ||
"ignore-changes-in": [ | ||
"**.md", | ||
"/.cm/**", | ||
"/.github/**", | ||
"/.git/**", | ||
"/.idea/**", | ||
"/.StrykerOutput/**", | ||
".gitignore", | ||
".gitmessage", | ||
"build.cake", | ||
"markdownlint.json", | ||
"doxygen.config", | ||
"*.DotSettings", | ||
"*.DotSettings.user", | ||
"License.txt", | ||
"semver.json" | ||
] | ||
} | ||
} | ||
} |