-
Notifications
You must be signed in to change notification settings - Fork 52
35 lines (31 loc) · 995 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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