-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (34 loc) · 1.51 KB
/
test.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
on: push
name: Test
jobs:
unity-editmode-test-mac:
runs-on: ["self-hosted", "macos"]
env:
UNITY_BINARY_PATH: "/Applications/Unity/Hub/Editor/2021.3.42f1/Unity.app/Contents/MacOS/Unity"
steps:
- run: echo "Hello world!"
- uses: actions/checkout@v4
- run: ${{env.UNITY_BINARY_PATH}} --batchmode --quit --projectPath ${{github.workspace}} --runTests --testPlatform EditMode
unity-playmode-test-mac:
runs-on: ["self-hosted", "macos"]
env:
UNITY_BINARY_PATH: "/Applications/Unity/Hub/Editor/2021.3.42f1/Unity.app/Contents/MacOS/Unity"
steps:
- run: echo "Hello world!"
- uses: actions/checkout@v4
- run: ${{env.UNITY_BINARY_PATH}} --batchmode --quit --projectPath ${{github.workspace}} --runTests --testPlatform PlayMode
unity-editmode-test-win:
runs-on: ["self-hosted", "windows"]
env:
UNITY_BINARY_PATH: "C:\\Program Files\\Unity\\Hub\\Editor\\2021.3.42f1\\Editor\\Unity.exe"
steps:
- uses: actions/checkout@v4
- run: "&\"${{env.UNITY_BINARY_PATH}}\" --batchmode --quit --projectPath ${{github.workspace}} --runTests --testPlatform EditMode"
unity-playmode-test-win:
runs-on: ["self-hosted", "windows"]
env:
UNITY_BINARY_PATH: "C:\\Program Files\\Unity\\Hub\\Editor\\2021.3.42f1\\Editor\\Unity.exe"
steps:
- run: echo "Hello world!"
- uses: actions/checkout@v4
- run: "&\"${{env.UNITY_BINARY_PATH}}\" --batchmode --quit --projectPath ${{github.workspace}} --runTests --testPlatform PlayMode"