Clean up analysis warnings #301
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: push | |
jobs: | |
test: | |
name: Run library tests | |
strategy: | |
matrix: | |
include: | |
- target: net462 | |
os: windows-latest | |
- target: net7.0 | |
runs-on: ${{ matrix.os || 'ubuntu-latest' }} | |
steps: | |
- name: Pull code | |
uses: actions/checkout@v3 | |
- name: Use .NET | |
uses: actions/setup-dotnet@v3 | |
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" | |
shell: bash |