generated from IvanMurzak/Unity-Package-Template
-
Notifications
You must be signed in to change notification settings - Fork 16
49 lines (47 loc) · 1.31 KB
/
main.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: Editor Tests
on:
workflow_call:
inputs:
projectPath:
required: true
type: string
unityVersion:
required: true
type: string
testMode:
required: true
type: string
secrets:
UNITY_LICENSE:
required: true
UNITY_EMAIL:
required: true
UNITY_PASSWORD:
required: true
jobs:
test:
name: ${{ inputs.unityVersion }} ${{ inputs.testMode }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: false
- uses: actions/cache@v4
with:
path: ${{ inputs.projectPath }}/Library
key: Library-${{ inputs.unityVersion }}
restore-keys: |
Library-
- uses: game-ci/unity-test-runner@v4
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: ${{ inputs.projectPath }}
unityVersion: ${{ inputs.unityVersion }}
testMode: ${{ inputs.testMode }}
artifactsPath: ${{ inputs.testMode }}-artifacts
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: ${{ inputs.unityVersion }} ${{ inputs.testMode }} Test Results