From 7f3867b4d445637ff7ed17acc487ec1bbc975d6d Mon Sep 17 00:00:00 2001 From: Hans Christian Winther-Sorensen Date: Sun, 22 Sep 2024 01:42:10 +0200 Subject: [PATCH] TEST-0007 Add stryker step --- .github/workflows/backend-ci.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index dcbf6097..030e91e9 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -195,15 +195,20 @@ jobs: comment-identifier: "${{ env.WORKFLOW_SHORT_NAME }}-CodeCoverageSummary" comment-content: ${{ steps.code-coverage-summary.outputs.markdown }} - - name: Inspect code - uses: muno92/resharper_inspectcode@v1 - if: ${{ github.event_name == 'pull_request' }} - with: - workingDirectory: ${{ env.BACKEND_SOLUTION_PATH }} - solutionPath: Backend.sln - dotnetVersion: ${{ env.DOTNET_VERSION }} - failOnIssue: false - solutionWideAnalysis: true - include: | - **.cs - ignoreIssueType: PropertyCanBeMadeInitOnly.Global + - name: Stryker + run: | + dotnet tool install -g dotnet-stryker + dotnet stryker --reporters "html" --reports "json" --reporters "markdown" --project ../../tests/backend/WebApi.Tests/WebApi.Tests.csproj --output-path ../../tests/backend/StrykerOutput + + # - name: Inspect code + # uses: muno92/resharper_inspectcode@v1 + # if: ${{ github.event_name == 'pull_request' }} + # with: + # workingDirectory: ${{ env.BACKEND_SOLUTION_PATH }} + # solutionPath: Backend.sln + # dotnetVersion: ${{ env.DOTNET_VERSION }} + # failOnIssue: false + # solutionWideAnalysis: true + # include: | + # **.cs + # ignoreIssueType: PropertyCanBeMadeInitOnly.Global