Skip to content

[Github] Run unit tests for all test platforms (#742) #42

[Github] Run unit tests for all test platforms (#742)

[Github] Run unit tests for all test platforms (#742) #42

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