Skip to content

Add multi-platform tests to verify compatibility #32

Add multi-platform tests to verify compatibility

Add multi-platform tests to verify compatibility #32

Workflow file for this run

name: 🖥️
on:
pull_request:
branches: [ main ]
jobs:
build-test:
name: ${{ matrix.os.name }} / .NET ${{ matrix.dotnet }} / ${{ matrix.arch }}
runs-on: ${{ matrix.os.runs-on }}
env:
TEST_ENGINE: Internal
strategy:
fail-fast: false
matrix:
include:
# Linux x64
- os:
name: 🐧
runs-on: ubuntu-latest
arch: x64
runtime: linux-x64
platform: linux/amd64
dotnet: 8.0
- os:
name: 🐧
runs-on: ubuntu-latest
arch: x64
runtime: linux-x64
platform: linux/amd64
dotnet: 9.0
# Linux arm64
- os:
name: 🐧
runs-on: ubuntu-22.04-arm
arch: arm64
runtime: linux-arm64
platform: linux/arm64/v8
dotnet: 8.0
- os:
name: 🐧
runs-on: ubuntu-22.04-arm
arch: arm64
runtime: linux-arm64
platform: linux/arm64/v8
dotnet: 9.0
# Windows x64
- os:
name: 🪟
runs-on: windows-latest
arch: x64
runtime: win-x64
platform: windows/amd64
dotnet: 8.0
- os:
name: 🪟
runs-on: windows-latest
arch: x64
runtime: win-x64
platform: windows/amd64
dotnet: 9.0
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup .NET SDK ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Setup .NET 9 (for ARM64 on .NET 8)
if: matrix.runtime == 'linux-arm64' && matrix.arch == 'arm64' && matrix.dotnet == '8.0'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0
- name: Build & Test (${{ matrix.runtime }})
run: dotnet test Testing/Acceptance/GenHTTP.Testing.Acceptance.csproj -c Release -f net${{ matrix.dotnet }}.0