Bump Microsoft.Extensions.Configuration from 9.0.10 to 10.0.0 #1105
Workflow file for this run
This file contains hidden or 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
| name: mutation-tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| pull_request: | |
| branches: | |
| - main | |
| - release/* | |
| - dotnet-vnext | |
| 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: ubuntu-latest | |
| timeout-minutes: 60 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: core | |
| target: Core | |
| - name: extensions | |
| target: Extensions | |
| - name: legacy | |
| target: Legacy | |
| - name: ratelimiting | |
| target: RateLimiting | |
| - name: testing | |
| target: Testing | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| show-progress: false | |
| - name: Setup .NET SDKs | |
| uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0 | |
| - name: Run mutation tests for ${{ matrix.target }} | |
| shell: pwsh | |
| env: | |
| MUTATION_TARGET: 'MutationTests${{ matrix.target }}' | |
| SKIP_POLLY_ANALYZERS: 'true' | |
| STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
| run: ./build.ps1 -Target ${env:MUTATION_TARGET} | |
| - name: Upload Mutation Report | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: mutation-report-${{ matrix.name }} | |
| path: ./artifacts/mutation-report | |
| mutation-tests: | |
| needs: [ mutations ] | |
| if: ${{ always() }} | |
| runs-on: ubuntu-latest | |
| env: | |
| MUTATIONS_SUCCESS: ${{ !contains(needs.*.result, 'failure') }} | |
| STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
| steps: | |
| - run: | | |
| if [ -z "${STRYKER_DASHBOARD_API_KEY}" ] | |
| then | |
| DASHBOARD_URL="https://dashboard.stryker-mutator.io/reports/github.com/${GITHUB_REPOSITORY}/${GITHUB_REF_NAME}" | |
| printf "# Mutations Dashboard\n\n[View report :notebook:](%s)\n" "${DASHBOARD_URL}" >> "${GITHUB_STEP_SUMMARY}" | |
| fi | |
| if [ "$MUTATIONS_SUCCESS" == "true" ] | |
| then | |
| echo "Mutation tests successful ✅" | |
| else | |
| echo "::error title=Mutation Tests::One or more mutation test runs failed ❌" | |
| exit 1 | |
| fi |