diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 175e20a..a1a9039 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -25,4 +25,6 @@ jobs: run: dotnet build --configuration Release --no-restore /p:TreatWarningsAsErrors=false - name: 'Test project' - run: dotnet test --no-restore --verbosity normal + run: dotnet test --no-restore --verbosity normal + + diff --git a/.github/workflows/stryker-mutation-tests.yml b/.github/workflows/stryker-mutation-tests.yml new file mode 100644 index 0000000..885830a --- /dev/null +++ b/.github/workflows/stryker-mutation-tests.yml @@ -0,0 +1,29 @@ +name: stryker-mutation-tests + +on: [workflow_dispatch, push] + +jobs: + mutation-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0' # Set the .NET version you're using + + - name: Install Stryker Globally + run: dotnet tool install -g dotnet-stryker + + - name: Run Stryker Mutation Tests + run: dotnet stryker --solution IegTools.Sequencer.sln --project tests/UnitTests.Sequencer/ --break-at 80 + + - name: Upload Stryker HTML Report + uses: actions/upload-artifact@v3 + with: + name: html-report + path: tests/UnitTests.Sequencer/StrykerOutput/**/*.html +