-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run mutation tests in a separate job to speed up CI.
- Loading branch information
Showing
4 changed files
with
124 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: mutation-tests | ||
|
||
on: | ||
push: | ||
branches: [ main, release/* ] | ||
pull_request: | ||
branches: [ main, release/* ] | ||
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
DOTNET_NOLOGO: true | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1 | ||
NUGET_XMLDOC_MODE: skip | ||
TERM: xterm | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
mutations: | ||
name: 'mutations-${{ matrix.name }}' | ||
runs-on: windows-latest | ||
timeout-minutes: 60 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: core | ||
target: Core | ||
- name: legacy | ||
target: Legacy | ||
|
||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET SDKs | ||
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | ||
|
||
- name: Setup NuGet cache | ||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }} | ||
restore-keys: ${{ runner.os }}-nuget- | ||
|
||
- name: Run mutation tests | ||
shell: pwsh | ||
env: | ||
MUTATION_TARGET: 'Mutation${{ matrix.target }}' | ||
run: ./build.ps1 -Target ${env:MUTATION_TARGET} | ||
|
||
- name: Upload Mutation Report | ||
if: always() | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
with: | ||
name: mutation-report-${{ matrix.name }} | ||
path: ./artifacts/mutation-report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters