diff --git a/.github/workflows/mutation-testing.yml b/.github/workflows/mutation-testing.yml new file mode 100644 index 000000000..b175f4cc9 --- /dev/null +++ b/.github/workflows/mutation-testing.yml @@ -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 \ No newline at end of file diff --git a/Vonage.sln b/Vonage.sln index 287007411..174f80955 100644 --- a/Vonage.sln +++ b/Vonage.sln @@ -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