Skip to content

ci(github-action): update actions/checkout action to v4.1.6 #224

ci(github-action): update actions/checkout action to v4.1.6

ci(github-action): update actions/checkout action to v4.1.6 #224

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Mutation Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🛡️ Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: 🛒 Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- name: 🧰 Setup .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: 8.0.x
- 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: 🧬 Stryker
run: |
dotnet tool restore
dotnet stryker -f .config/stryker-config.json -O StrykerOutput --dashboard-api-key ${{ secrets.STRYKER_DASHBOARD_API_KEY }} -v main
if: github.event_name != 'pull_request'
- name: 🧬 Stryker (Diff)
run: |
dotnet tool restore
dotnet stryker -f .config/stryker-config.json -O StrykerOutput -r html -r markdown --since:main
if: github.event_name == 'pull_request'
- name: 📤 Upload Mutation Report
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: mutation-report
path: StrykerOutput/reports
- name: 📓 Mutation Test Summary
run: cat StrykerOutput/reports/mutation-report.md >> $GITHUB_STEP_SUMMARY