Merge pull request #108 from huguesv/format #54
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: Build and Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
solutionFile: src/AgiPlayer.sln | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Clean | |
run: dotnet clean ${{env.solutionFile}} --configuration Release && dotnet nuget locals all --clear | |
- name: Build | |
run: dotnet build ${{env.solutionFile}} --configuration Release | |
- name: Format | |
run: dotnet format ${{env.solutionFile}} --verify-no-changes --verbosity diagnostic | |
- name: Test | |
run: dotnet test ${{env.solutionFile}} --no-restore --verbosity normal |