Skip to content

Second draft

Second draft #31

Workflow file for this run

name: Validate
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-and-test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{matrix.os}}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Show dotnet info
run: dotnet --info
- name: Restore
run: dotnet restore src
- name: Check Formatting
run: dotnet format --verify-no-changes src
- name: Build (Debug)
run: dotnet build src -c Debug --no-restore
- name: Test (Debug)
run: dotnet test src -c Debug --no-build
- name: Build (Release)
run: dotnet build src -c Release --no-restore
- name: Test (Release)
run: dotnet test src -c Release --no-build