Skip to content

Reusable actions

Reusable actions #23

Workflow file for this run

name: test-mutations
on:
workflow_dispatch:
push:
branches:
- "master" # Run the workflow when pushing to the master branch
paths-ignore:
- "**.md"
- "**.png"
pull_request:
branches:
- "*" # Run the workflow for all pull requests
paths-ignore:
- "**.md"
- "**.png"
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
Configuration: Release
defaults:
run:
shell: pwsh
jobs:
init:
runs-on: ubuntu-latest
steps:
- name: 📥 checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 🖊️ materialize signing key
id: signing-key
uses: ./.github/actions/materialize-signing-key
with:
signing-key-value: ${{ secrets.SIGNING_KEY }}
- name: 💾 install stryker.net
run: |
dotnet new tool-manifest
dotnet tool install --local dotnet-stryker
- name: 👾 test mutations
working-directory: ./src
run: |
dotnet tool run dotnet-stryker -f stryker-config.yaml -r dashboard -v ${{ github.ref_name }} --dashboard-api-key ${{ secrets.STRYKER_API_KEY }}
env:
CI: true
StrongNameKey: ${{ secrets.SIGNING_KEY }}
StrongNameKeyPath: ${{ steps.signing-key.outputs.file-path }}