File tree Expand file tree Collapse file tree 1 file changed +23
-30
lines changed Expand file tree Collapse file tree 1 file changed +23
-30
lines changed Original file line number Diff line number Diff line change 6
6
7
7
env :
8
8
UNITY_LICENSE : ${{ secrets.UNITY_LICENSE }}
9
+ UNITY_EMAIL : ${{ secrets.UNITY_EMAIL }}
10
+ UNITY_PASSWORD : ${{ secrets.UNITY_PASSWORD }}
9
11
10
12
jobs :
11
- testRunner :
12
- name : Test all modes 📝
13
+ testAllModes :
14
+ name : Test in '${{ matrix.testMode }}' 📝
13
15
runs-on : ubuntu-latest
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ testMode :
20
+ - playmode
21
+ - editmode
22
+ - standalone
14
23
steps :
15
- - name : Checkout code
16
- uses : actions/checkout@v2
17
-
18
- - name : Create LFS file list
19
- run : git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
20
-
21
- - name : Restore LFS cache
22
- uses : actions/cache@v2
23
- id : lfs-cache
24
+ - uses : actions/checkout@v4
24
25
with :
25
- path : .git/lfs
26
- key : ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
27
-
28
- - name : Git LFS Pull
29
- run : |
30
- git lfs pull
31
- git add .
32
- git reset --hard
33
-
34
- - name : Restore Library cache
35
- uses : actions/cache@v2
26
+ lfs : true
27
+ - uses : actions/cache@v3
36
28
with :
37
29
path : Library
38
30
key : Library-test-project
39
31
restore-keys : |
40
32
Library-test-project-
41
33
Library-
42
-
43
- - uses : game-ci/unity-test-runner@v2
44
- id : testRunner
34
+ - uses : game-ci/unity-test-runner@v4
35
+ id : tests
45
36
with :
46
- testMode : all
47
-
48
- - uses : actions/upload-artifact@v2
37
+ testMode : ${{ matrix.testMode }}
38
+ artifactsPath : ${{ matrix.testMode }}-artifacts
39
+ checkName : ${{ matrix.testMode }} Test Results
40
+ - uses : actions/upload-artifact@v3
41
+ if : always()
49
42
with :
50
- name : Test results (all modes)
51
- path : ${{ steps.testRunner .outputs.artifactsPath }}
43
+ name : Test results for ${{ matrix.testMode }}
44
+ path : ${{ steps.tests .outputs.artifactsPath }}
You can’t perform that action at this time.
0 commit comments