-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (42 loc) · 1.17 KB
/
RunTests.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
45
46
47
48
49
name: RunTests
on:
workflow_dispatch:
pull_request:
branches: [main]
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
jobs:
test:
name: Run Tests in ${{ matrix.testMode }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
- playmode
- editmode
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
lfs: true
- name: Setup Environment
run: |
mkdir Tmp
mv Editor Tmp/
mv Runtime Tmp/
mv Tests Tmp/
mv package.json Tmp/package.json
- name: Run Tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
packageMode: true
projectPath: Tmp/
testMode: ${{ matrix.testMode }}
unityVersion: 2022.3.34f1