update readme to include mutation reporting #45
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Examples-Test: | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'Solution/UnitTest.sln' | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
contents: write | |
actions: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.x | |
- name: Setup Chrome-Browser | |
uses: browser-actions/setup-chrome@v1 | |
with: | |
# Optional: do not specify to match Chrome's version | |
chrome-version: '127' | |
- name: Setup Chrome-driver | |
uses: nanasess/setup-chromedriver@v2 | |
with: | |
# Optional: do not specify to match Chrome's version | |
chromedriver-version: '127' | |
- name: Restore dependencies | |
run: dotnet restore $SOLUTION | |
- name: Run Test | |
run: dotnet test $SOLUTION --configuration $BUILD_CONFIG --logger "trx;LogFileName=test-results.trx" || true | |
- name: Examples Report | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
name: Test Report | |
path: "**/test-results.trx" | |
reporter: dotnet-trx | |
only-summary: 'false' | |
fail-on-error: true | |
Mutation-Testing: | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'Solution/UnitTest.sln' | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
contents: write | |
actions: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.x | |
- name: stryker-mutator .NET | |
uses: stryker-mutator/github-action@v0.0.1 | |
with: | |
testProject: "Solution/TestPalindrome/" # required | |
breakAt: "75" # Optional | |
- name: Stryker-Html-Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: html-report | |
path: ${{github.workspace}}/Solution/TestPalindrome/StrykerOutput/**/**/*.html | |
Release-Build: | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'Solution/UnitTest.sln' | |
runs-on: windows-latest | |
permissions: | |
issues: write | |
contents: write | |
actions: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.x | |
- name: Restore dependencies | |
run: dotnet restore Solution\UnitTest.sln | |
- name: Build Project | |
run: dotnet build Solution\UnitTest.sln --configuration Release |