-
-
Notifications
You must be signed in to change notification settings - Fork 77
44 lines (31 loc) · 1.28 KB
/
TestCommit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test project on commit and pull requests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: net48 on windows
if: runner.os == 'Windows'
run: choco install netfx-4.8 --ignore-checksums
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- uses: actions/checkout@v4
- name: Install dependencies
run: dotnet restore
- name: Build
# https://github.com/dotnet/core/issues/7840 failed to build with 0 errors
run: dotnet build --configuration Debug --no-restore --disable-build-servers
- name: Test net48
if: runner.os == 'Windows'
run: dotnet test ./tests/SharpGLTF.Ext.3DTiles.Tests/SharpGLTF.Ext.3DTiles.Tests.csproj --framework net48 --no-build
- name: Test net6
run: dotnet test ./tests/SharpGLTF.Ext.3DTiles.Tests/SharpGLTF.Ext.3DTiles.Tests.csproj --framework net6 --no-build
- name: Test net8
run: dotnet test ./tests/SharpGLTF.Ext.3DTiles.Tests/SharpGLTF.Ext.3DTiles.Tests.csproj --framework net8 --no-build