Skip to content

Upgrade to .NET 9.

Upgrade to .NET 9. #55

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: '9.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