Minor update to take advantage of C# 12.0. #109
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, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET 8 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install dependencies | |
run: dotnet restore | |
# Debug and Release might be different due to conditional compilation, so validate both. | |
- name: Build (Debug) | |
run: dotnet build --configuration Debug --no-restore | |
- name: Build (Release) | |
run: dotnet build --configuration Release --no-restore | |
- name: Test (Debug) | |
run: dotnet test --configuration Debug --no-build --verbosity normal | |
- name: Test (Release) | |
run: dotnet test --configuration Release --no-build --verbosity normal |