Skip to content

Merge pull request #39 from DGrothe-PhD/DGrothe-PhD-patch-2 #71

Merge pull request #39 from DGrothe-PhD/DGrothe-PhD-patch-2

Merge pull request #39 from DGrothe-PhD/DGrothe-PhD-patch-2 #71

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: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
working-directory: Mastermind.Tests
run: dotnet test Mastermind.Tests.csproj --logger "trx;logfilename=testResults.trx" --results-directory TestResults
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: DotNET Tests
path: "Mastermind.Tests/**/test*Results*.trx"
reporter: dotnet-trx
fail-on-error: true