Skip to content

Commit

Permalink
Create stryker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
barzin144 authored Dec 27, 2023
1 parent 61ffef5 commit f83d5bd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/stryker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Stryker
on:
workflow_dispatch: {}
push:
jobs:
stryker:
name: mutation testing
runs-on: ubuntu-lastest

steps:
- uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.301

- name: Install stryker mutator
run: |
export PATH="$PATH:$HOME/.dotnet/tools"
dotnet tool install -g dotnet-stryker
dotnet stryker -O ./reports
- name: Upload report
uses: actions/upload-artifact@v3
with:
name: page
path: ${{ github.workspace }}/reports

deploy-report:
name: Deploy github pages
needs: stryker
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}.
uses: ./.github/workflows/gh-pages.yml
secrets: inherit

0 comments on commit f83d5bd

Please sign in to comment.