Skip to content

Merge pull request #911 from Romfos/actions #134

Merge pull request #911 from Romfos/actions

Merge pull request #911 from Romfos/actions #134

Workflow file for this run

name: Build, Test, and Format verification
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
9.0.x
8.0.x
- name: Build
run: dotnet build
- name: .NET Framework Tests
if: matrix.os == 'windows-latest'
run: dotnet test -f net462 --no-build --no-restore
- name: .NET 8 Tests
run: dotnet test -f net8.0 --no-build --no-restore
- name: .NET 9 Tests
run: dotnet test -f net9.0 --no-build --no-restore
format-verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x
- name: Format
run: dotnet format --verify-no-changes