Skip to content

Commit a31ec10

Browse files
committed
Add push trigger to unity-tests workflow and update cache key to include unity version
1 parent 5324a2e commit a31ec10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/unity-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
branches:
66
- master
7+
push:
8+
branches:
9+
- master
710

811
jobs:
912
testAllModes:
@@ -32,7 +35,7 @@ jobs:
3235
- uses: actions/cache@v4
3336
with:
3437
path: ${{ matrix.projectPath }}/Library
35-
key: Library-${{ matrix.projectPath }}
38+
key: Library-${{ matrix.unityVersion }}
3639
restore-keys: |
3740
Library-
3841
- uses: game-ci/unity-test-runner@v4
@@ -43,6 +46,7 @@ jobs:
4346
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
4447
with:
4548
projectPath: ${{ matrix.projectPath }}
49+
unityVersion: ${{ matrix.unityVersion }}
4650
testMode: ${{ matrix.testMode }}
4751
artifactsPath: ${{ matrix.testMode }}-artifacts
4852
githubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)