Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit 0912f4b

Browse files
committed
[ci] Use game-ci/unity-test-runner
1 parent 005b373 commit 0912f4b

File tree

4 files changed

+32
-36
lines changed

4 files changed

+32
-36
lines changed

.github/workflows/test.yaml

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,38 @@ on: push
55
jobs:
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

Packages/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"dependencies": {
33
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask",
44
"com.unity.ide.rider": "2.0.7",
5-
"com.unity.ide.visualstudio": "2.0.5",
5+
"com.unity.ide.visualstudio": "2.0.7",
66
"com.unity.ide.vscode": "1.2.3",
7-
"com.unity.test-framework": "1.1.20",
7+
"com.unity.test-framework": "1.1.22",
88
"com.unity.ugui": "1.0.0",
99
"com.unity.modules.animation": "1.0.0",
1010
"com.unity.modules.assetbundle": "1.0.0",

Packages/packages-lock.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@
2424
"url": "https://packages.unity.com"
2525
},
2626
"com.unity.ide.visualstudio": {
27-
"version": "2.0.5",
27+
"version": "2.0.7",
2828
"depth": 0,
2929
"source": "registry",
30-
"dependencies": {},
30+
"dependencies": {
31+
"com.unity.test-framework": "1.1.9"
32+
},
3133
"url": "https://packages.unity.com"
3234
},
3335
"com.unity.ide.vscode": {
@@ -38,7 +40,7 @@
3840
"url": "https://packages.unity.com"
3941
},
4042
"com.unity.test-framework": {
41-
"version": "1.1.20",
43+
"version": "1.1.22",
4244
"depth": 0,
4345
"source": "registry",
4446
"dependencies": {

ProjectSettings/ProjectVersion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2020.2.3f1
2-
m_EditorVersionWithRevision: 2020.2.3f1 (8ff31bc5bf5b)
1+
m_EditorVersion: 2020.3.0f1
2+
m_EditorVersionWithRevision: 2020.3.0f1 (c7b5465681fb)

0 commit comments

Comments
 (0)