-
-
Notifications
You must be signed in to change notification settings - Fork 115
34 lines (30 loc) · 947 Bytes
/
unit-tests.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
name: Run Unity Tests
on:
pull_request:
types: [closed]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
if: startsWith(github.base_ref, 'release/') && github.event.pull_request.merged == true
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Environment
run: |
mkdir Package~
mv Editor Package~/
mv Runtime Package~/
mv Tests Package~/
mv package.json Package~/package.json
- name: Run Tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
packageMode: true
projectPath: Package~/
testMode: playmode
unityVersion: 2022.3.16f1