test: update test workflow
parent
ad20d128a2
commit
cc2be37b9e
|
@ -1,5 +1,7 @@
|
||||||
# Required secrets
|
# Required secrets
|
||||||
# UNITY_LICENSE: The contents of Unity license file
|
# UNITY_LICENSE: The contents of Unity license file
|
||||||
|
# UNITY_EMAIL: Unity user email to login
|
||||||
|
# UNITY_PASSWORD: Unity user password to login
|
||||||
name: 🧪 Test
|
name: 🧪 Test
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -42,6 +44,10 @@ jobs:
|
||||||
test:
|
test:
|
||||||
name: 🧪 Run tests
|
name: 🧪 Run tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
permissions:
|
permissions:
|
||||||
checks: write
|
checks: write
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -55,7 +61,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 📥 Cache library
|
- name: 📥 Cache library
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: Library
|
path: Library
|
||||||
key: Library-${{ matrix.unityVersion }}-${{ github.sha }}
|
key: Library-${{ matrix.unityVersion }}-${{ github.sha }}
|
||||||
|
@ -64,10 +70,8 @@ jobs:
|
||||||
Library-
|
Library-
|
||||||
|
|
||||||
- name: 🛠️ Build Unity Project
|
- name: 🛠️ Build Unity Project
|
||||||
uses: game-ci/unity-builder@v3
|
uses: game-ci/unity-builder@v4
|
||||||
timeout-minutes: 30
|
timeout-minutes: 45
|
||||||
env:
|
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
||||||
with:
|
with:
|
||||||
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
||||||
targetPlatform: StandaloneLinux64
|
targetPlatform: StandaloneLinux64
|
||||||
|
@ -75,10 +79,8 @@ jobs:
|
||||||
customParameters: -nographics
|
customParameters: -nographics
|
||||||
|
|
||||||
- name: 🧪 Run tests
|
- name: 🧪 Run tests
|
||||||
uses: game-ci/unity-test-runner@v3
|
uses: game-ci/unity-test-runner@v4
|
||||||
timeout-minutes: 30
|
timeout-minutes: 45
|
||||||
env:
|
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
||||||
with:
|
with:
|
||||||
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
customImage: ghcr.io/mob-sakai/unity3d:${{ matrix.unityVersion }}
|
||||||
# unityVersion: ${{ matrix.unityVersion }}
|
# unityVersion: ${{ matrix.unityVersion }}
|
||||||
|
|
Loading…
Reference in New Issue