Skip to content

Commit 1cbc7d9

Browse files
Add GitHub action to run tests
1 parent 544b737 commit 1cbc7d9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '10.0.x'
24+
25+
- name: Restore dependencies
26+
run: dotnet restore src/UnityCommandLineLauncher.sln
27+
28+
- name: Build
29+
run: dotnet build src/UnityCommandLineLauncher.sln --no-restore
30+
31+
- name: Test
32+
run: dotnet test src/UnityCommandLineLauncher.sln --no-build

0 commit comments

Comments
 (0)