Skip to content

Commit

Permalink
Run unit tests for all test platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Romfos committed Oct 8, 2023
1 parent a5b9d4e commit a1fcb93
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@ name: Build and Test

on: [push, pull_request]
jobs:
build:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [windows-latest, ubuntu-latest, macOS-latest]
tfm: [net6.0, net7.0]
include:
- os: windows-latest
tfm: net462

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
dotnet-version: |
6.0.x
7.0.x
- name: Build
run: dotnet build -c Release --no-restore
run: dotnet build

- name: Test
run: dotnet test -c Release -f net6.0 --no-build --verbosity normal
run: dotnet test -f ${{ matrix.tfm }} --no-build --no-restore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net462;net6.0</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0;net462</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit a1fcb93

Please sign in to comment.