Skip to content

Support .NET 9

Support .NET 9 #392

Workflow file for this run

name: Test
on: push
jobs:
test:
name: Run library tests
strategy:
matrix:
include:
- target: net462
os: windows-latest
- target: net8.0
- target: net9.0
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
steps:
- name: Pull code
uses: actions/checkout@v4
- name: Use .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Run unit tests
run: |
set -xe
test_directory=tests
test_flags="--framework ${{ matrix.target }}"
dotnet test $test_flags "$test_directory\\Chr.Avro.Tests"
dotnet test $test_flags "$test_directory\\Chr.Avro.Binary.Tests"
dotnet test $test_flags "$test_directory\\Chr.Avro.Json.Tests"
dotnet test $test_flags "$test_directory\\Chr.Avro.Confluent.Tests"
dotnet test $test_flags "$test_directory\\Chr.Avro.Codegen.Tests"
shell: bash