@@ -5,44 +5,38 @@ on: push
55jobs :
66 test-unity :
77 runs-on : ubuntu-latest
8- env :
9- UNITY_LICENSE_FILE : ./tmp/ulf
108 strategy :
119 matrix :
1210 unityVersion :
13- - 2020.1.13f1
14- - 2019.4.14f1
15- - 2019.3.12f1
16- scriptBackend : ['mono']
11+ - 2020.3.0f1
12+ - 2019.4.22f1
13+ - 2018.4.32f1
1714 include :
18- - unityVersion : 2020.1.13f1
19- license : UNITY_LICENSE_2020_1_BASE64
20- - unityVersion : 2019.4.14f1
21- license : UNITY_LICENSE_2019_4_BASE64
22- - unityVersion : 2019.3.12f1
23- license : UNITY_LICENSE_2019_3_BASE64
24- container :
25- image : gableroux/unity3d:${{ matrix.unityVersion }}-linux-il2cpp
15+ - unityVersion : 2020.3.0f1
16+ license : UNITY_LICENSE_2020_3
17+ - unityVersion : 2019.4.22f1
18+ license : UNITY_LICENSE_2019_4
19+ - unityVersion : 2019.3.15f1
20+ license : UNITY_LICENSE_2019_3
21+ # - unityVersion: 2018.4.32f1
22+ # license: UNITY_LICENSE_2018_4
2623 steps :
2724 - uses : actions/checkout@v2
2825 - uses : actions/cache@v2
2926 with :
3027 path : Library
3128 key : Library-UniTaskPubSub-${{ matrix.unityVersion }}
32- - name : Dump unity license file
33- shell : bash
34- run : |
35- mkdir ./tmp
36- chmod 777 ./tmp
37- echo -n "${{ secrets[matrix.license] }}" | base64 --decode > $UNITY_LICENSE_FILE
38- - name : Load License
39- shell : bash
40- run : xvfb-run --error-file=/dev/stdout --auto-servernum --server-args='-screen 0 1024x768x24' /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile /dev/stdout -manualLicenseFile $UNITY_LICENSE_FILE || exit 0
41- - name : Run Tests
42- shell : bash
43- run : xvfb-run --error-file=/dev/stdout --auto-servernum --server-args='-screen 0 1024x768x24' /opt/Unity/Editor/Unity -quit -batchmode -logFile /dev/stdout -projectPath ./ -runTests -testResults $GITHUB_WORKSPACE/tmp/TestResults.xml -testPlatform playmode -buildTarget StandaloneLinux64 -scriptbackend=${{ matrix.scriptBackend }} -nographics -silent-crashes
29+ restore-keys : |
30+ Library-UniTaskPubSub
31+ Library-
32+ - uses : game-ci/unity-test-runner@v2.0-alpha-2
33+ env :
34+ UNITY_LICENSE : ${{ secrets[matrix.license] }}
35+ with :
36+ projectPath : .
37+ unityVersion : ${{ matrix.unityVersion }}
38+ # customParameters: -testSettingsFile ./testSettings.json
4439 - uses : actions/upload-artifact@v2
45- if : always()
4640 with :
47- name : TestResults.xml
48- path : ./tmp/TestResults.xml
41+ name : Test results
42+ path : artifacts
0 commit comments