Skip to content

Use ubuntu-22.04 for GitHub Actions (#688) #73

Use ubuntu-22.04 for GitHub Actions (#688)

Use ubuntu-22.04 for GitHub Actions (#688) #73

Workflow file for this run

name: Tests
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
pull_request:
branches:
- main
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-22.04
# ubuntu-latest = ubuntu-24.04 does not include mono (2025-08-01)
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
6.0.x
3.1.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release -p:Nullable=disable -p:nowarn=1591
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal