Skip to content

Commit

Permalink
Add mutation workflow (#293)
Browse files Browse the repository at this point in the history
* Add github workflows in solution

* Create mutation workflow
  • Loading branch information
Tr00d authored Oct 4, 2022
1 parent 33a2417 commit c9cabbf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/mutation-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Mutation testing
on: workflow_dispatch
jobs:
mutation:
name: Run mutation analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.401'
- name: Install Stryker
run: dotnet tool install -g dotnet-stryker
- name: Run mutation testing
run: |
cd Vonage.Test.Unit
dotnet stryker
- uses: actions/upload-artifact@v3
with:
name: mutation-report
path: Vonage.Test.Unit/StrykerOutput/**/reports/mutation-report.html
8 changes: 8 additions & 0 deletions Vonage.sln
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vonage", "Vonage\Vonage.csp
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vonage.Test.Unit", "Vonage.Test.Unit\Vonage.Test.Unit.csproj", "{8BEFC27E-003A-49C3-B399-DDD40D37F024}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{E0F12A0C-DA69-487C-9037-281BA2CBD244}"
ProjectSection(SolutionItems) = preProject
.github\workflows\dotnet-core.yml = .github\workflows\dotnet-core.yml
.github\workflows\publish-nuget.yml = .github\workflows\publish-nuget.yml
.github\workflows\release.yml = .github\workflows\release.yml
.github\workflows\mutation-testing.yml = .github\workflows\mutation-testing.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit c9cabbf

Please sign in to comment.