Skip to content

Commit c219af1

Browse files
committed
ci: Update Unity test runner
1 parent 31bae1d commit c219af1

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/run-tests-and-package.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
push:
1212
branches: # Made towards the following
1313
- main
14-
- dev
1514
- ci/*
1615
workflow_dispatch:
1716
inputs:
@@ -24,7 +23,6 @@ jobs:
2423
name: Test SDK in Editor
2524
runs-on: [ubuntu-latest]
2625
needs: []
27-
# if: ( true == false )
2826
timeout-minutes: 10
2927
env:
3028
LL_USE_STAGE: false
@@ -99,7 +97,7 @@ jobs:
9997
Library-
10098
- name: Run Smoke Tests ${{ matrix.unityVersion }}-${{ matrix.testMode }}
10199
id: editor-smoke-tests-gameci
102-
uses: game-ci/unity-test-runner@v4
100+
uses: game-ci/unity-test-runner@v4.3.1
103101
env:
104102
UNITY_LICENSE: ${{ SECRETS.UNITY_LICENSE }}
105103
UNITY_EMAIL: ${{ SECRETS.UNITY_EMAIL }}
@@ -116,6 +114,7 @@ jobs:
116114
name: Test SDK in StandaloneLinux64 build
117115
runs-on: [ubuntu-latest]
118116
needs: [editor-smoke-test]
117+
if: false
119118
timeout-minutes: 10
120119
env:
121120
LL_USE_STAGE: false
@@ -199,7 +198,7 @@ jobs:
199198
Library-
200199
- name: Run Smoke Tests ${{ matrix.unityVersion }}-${{ matrix.testMode }}-${{ matrix.targetPlatform }}
201200
id: build-smoke-tests-gameci
202-
uses: game-ci/unity-builder@v4
201+
uses: game-ci/unity-builder@v4.7.0
203202
env:
204203
UNITY_LICENSE: ${{ SECRETS.UNITY_LICENSE }}
205204
UNITY_EMAIL: ${{ SECRETS.UNITY_EMAIL }}
@@ -228,7 +227,7 @@ jobs:
228227
runs-on: [ubuntu-latest]
229228
needs: [editor-smoke-test]
230229
timeout-minutes: 20
231-
if: (startsWith(github.ref, 'refs/pull') && endsWith(github.base_ref, 'main')) || startsWith(github.ref, 'refs/tags/v') || (startsWith(github.ref, 'refs/heads') && endsWith(github.ref, 'main'))
230+
if: false && (startsWith(github.ref, 'refs/pull') && endsWith(github.base_ref, 'main')) || startsWith(github.ref, 'refs/tags/v') || (startsWith(github.ref, 'refs/heads') && endsWith(github.ref, 'main'))
232231
env:
233232
LL_USE_STAGE: false
234233
strategy:
@@ -311,7 +310,7 @@ jobs:
311310
Library-
312311
- name: Run Smoke Tests ${{ matrix.unityVersion }}-${{ matrix.testMode }}-${{ matrix.targetPlatform }}
313312
id: build-smoke-tests-gameci
314-
uses: game-ci/unity-builder@v4
313+
uses: game-ci/unity-builder@v4.7.0
315314
env:
316315
UNITY_LICENSE: ${{ SECRETS.UNITY_LICENSE }}
317316
UNITY_EMAIL: ${{ SECRETS.UNITY_EMAIL }}
@@ -418,7 +417,7 @@ jobs:
418417
- name: Wait for Go backend ready healthcheck
419418
if: ${{ VARS.LL_USE_LOCAL_BACKEND == 'true' }}
420419
run: |
421-
curl --get http://localhost:9999/__/ready --retry 30 --retry-delay 1 --retry-all-errors --fail-with-body --verbose
420+
curl --get http://localhost:9999/__/ready --retry 60 --retry-delay 2 --retry-all-errors --fail-with-body --verbose
422421
####### CONFIGURE TESTS ###########
423422
- name: Configure variables
424423
run: |
@@ -507,7 +506,7 @@ jobs:
507506
key: Library-${{ matrix.unityVersion }}-${{ ENV.JSON_LIBRARY }}
508507
restore-keys: Library-
509508
- name: Run tests in ${{ matrix.unityVersion }} towards ${{ ENV.TARGET_ENVIRONMENT }} environment with json library ${{ ENV.JSON_LIBRARY }}
510-
uses: game-ci/unity-test-runner@v4
509+
uses: game-ci/unity-test-runner@v4.3.1
511510
if: ${{ vars.ENABLE_INTEGRATION_TESTS == 'true' }}
512511
id: tests
513512
env:
@@ -533,6 +532,12 @@ jobs:
533532
run: |
534533
cd devenv
535534
mage env:downsilent dev
535+
- name: Upload logs
536+
uses: actions/upload-artifact@v4
537+
if: always()
538+
with:
539+
name: Integration tests (${{ matrix.unityVersion }}-${{ ENV.JSON_LIBRARY }}) Logs
540+
path: logs
536541
- name: Upload test results
537542
uses: actions/upload-artifact@v4
538543
if: always()
@@ -543,7 +548,7 @@ jobs:
543548
name: Test Samples
544549
runs-on: [ubuntu-latest]
545550
needs: [editor-smoke-test]
546-
timeout-minutes: 8
551+
timeout-minutes: 12
547552
env:
548553
LL_USE_STAGE: false
549554
strategy:
@@ -595,7 +600,7 @@ jobs:
595600
Library-
596601
- name: Compile and run all sample scenes ${{ matrix.unityVersion }}
597602
id: test-samples
598-
uses: game-ci/unity-test-runner@v4
603+
uses: game-ci/unity-test-runner@v4.3.1
599604
env:
600605
UNITY_LICENSE: ${{ SECRETS.UNITY_LICENSE }}
601606
UNITY_EMAIL: ${{ SECRETS.UNITY_EMAIL }}
@@ -664,7 +669,7 @@ jobs:
664669
Library-
665670
- name: Validate SDK using asset store tools
666671
id: validate-sdk
667-
uses: game-ci/unity-test-runner@v4
672+
uses: game-ci/unity-test-runner@v4.3.1
668673
env:
669674
UNITY_LICENSE: ${{ SECRETS.UNITY_LICENSE }}
670675
UNITY_EMAIL: ${{ SECRETS.UNITY_EMAIL }}
@@ -733,7 +738,7 @@ jobs:
733738
Library-
734739
- name: Package SDK for ${{ matrix.unityVersion }}
735740
id: package-sdk-gameci
736-
uses: game-ci/unity-test-runner@v4
741+
uses: game-ci/unity-test-runner@v4.3.1
737742
env:
738743
UNITY_LICENSE: ${{ SECRETS.UNITY_LICENSE }}
739744
UNITY_EMAIL: ${{ SECRETS.UNITY_EMAIL }}

0 commit comments

Comments
 (0)