diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1453e21de..2c7b9ebd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -213,8 +213,7 @@ jobs: coverage-reports: coverage-report/Cobertura.xml stryker-ubuntu: - name: Analyze quality of unit test coverage with .NET Stryker (Ubuntu) - if: startsWith(github.ref, 'refs/heads/release/') + name: Stryker mutation testing (Ubuntu) runs-on: ubuntu-latest timeout-minutes: 300 steps: @@ -242,8 +241,7 @@ jobs: ../../tools/dotnet-stryker -f ../.github/stryker/Stryker.Config.Testing.json -v "${GITHUB_REF#refs/heads/}" -r "Dashboard" -r "cleartext" stryker-windows: - name: Analyze quality of unit test coverage with .NET Stryker (Windows) - if: startsWith(github.ref, 'refs/heads/release/') + name: Stryker mutation testing (Windows) runs-on: windows-latest timeout-minutes: 300 steps: @@ -289,7 +287,7 @@ jobs: if: startsWith(github.ref, 'refs/heads/release/') runs-on: ubuntu-latest environment: production - needs: [test-macos, test-ubuntu, test-windows, test-net-framework, test-examples] + needs: [test-macos, test-ubuntu, test-windows, test-net-framework, test-examples, stryker-windows, stryker-ubuntu] steps: - name: Checkout sources uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 @@ -348,7 +346,7 @@ jobs: name: Cleanup if: startsWith(github.ref, 'refs/heads/release/') runs-on: ubuntu-latest - needs: [deploy, stryker-windows, stryker-ubuntu] + needs: [deploy] steps: - name: Comment relevant issues and pull requests uses: apexskier/github-release-commenter@v1.3.6 diff --git a/.github/workflows/stryker.yml b/.github/workflows/stryker.yml deleted file mode 100644 index e1ebdd8c8..000000000 --- a/.github/workflows/stryker.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: "Stryker" - -on: - workflow_dispatch: - push: - branches: [main] - -jobs: - stryker-ubuntu: - name: Stryker mutation testing (Ubuntu) - runs-on: ubuntu-latest - timeout-minutes: 300 - steps: - - name: Checkout sources - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - with: - fetch-depth: 0 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 6.0.x - 7.0.x - 8.0.x - - name: Install .NET Stryker - shell: bash - run: | - dotnet tool install dotnet-stryker --tool-path ../tools - - name: Analyze Testably.Abstractions.Testing - env: - STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} - shell: bash - run: | - cd Tests - ../../tools/dotnet-stryker -f ../.github/stryker/Stryker.Config.Testing.json -v "${GITHUB_REF#refs/heads/}" -r "Dashboard" -r "cleartext" - - stryker-windows: - name: Stryker mutation testing (Windows) - runs-on: windows-latest - timeout-minutes: 300 - steps: - - name: Checkout sources - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - with: - fetch-depth: 0 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: | - 6.0.x - 7.0.x - 8.0.x - - name: Install .NET Stryker - shell: bash - run: | - dotnet tool install dotnet-stryker --tool-path ../tools - - name: Analyze Testably.Abstractions - env: - STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} - shell: bash - run: | - cd Tests - ../../tools/dotnet-stryker -f ../.github/stryker/Stryker.Config.json -v "${GITHUB_REF#refs/heads/}" -r "Dashboard" -r "cleartext" - - name: Analyze Testably.Abstractions.AccessControl - env: - STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} - shell: bash - run: | - cd Tests - ../../tools/dotnet-stryker -f ../.github/stryker/Stryker.Config.AccessControl.json -v "${GITHUB_REF#refs/heads/}" -r "Dashboard" -r "cleartext" - - name: Analyze Testably.Abstractions.Compression - env: - STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} - shell: bash - run: | - cd Tests - ../../tools/dotnet-stryker -f ../.github/stryker/Stryker.Config.Compression.json -v "${GITHUB_REF#refs/heads/}" -r "Dashboard" -r "cleartext" diff --git a/Testably.Abstractions.sln b/Testably.Abstractions.sln index 06e15af97..2a482f6b3 100644 --- a/Testably.Abstractions.sln +++ b/Testably.Abstractions.sln @@ -62,7 +62,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{ .github\workflows\ci-stryker.yml = .github\workflows\ci-stryker.yml .github\workflows\ci.yml = .github\workflows\ci.yml .github\workflows\pr.yml = .github\workflows\pr.yml - .github\workflows\stryker.yml = .github\workflows\stryker.yml .github\workflows\test-report.yml = .github\workflows\test-report.yml EndProjectSection EndProject