Skip to content

[Github] Run unit tests for all test platforms #18

[Github] Run unit tests for all test platforms

[Github] Run unit tests for all test platforms #18

name: Build and Test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
tfm: net462
- os: windows-latest
tfm: net6.0
- os: ubuntu-latest
tfm: net6.0
- os: macOS-latest
tfm: net6.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test -f ${{ matrix.tfm }} --no-build --no-restore