Skip to content

Commit

Permalink
[Github] Run unit tests for all test platforms (#742)
Browse files Browse the repository at this point in the history
* Run unit tests for all test platforms

* Update build_and_test.yml
  • Loading branch information
Romfos authored Oct 10, 2023
1 parent 4beec78 commit 9a3540c
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]
framework: [net6.0, net7.0]
include:
- os: windows-latest
framework: 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.framework }} --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 9a3540c

Please sign in to comment.