We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents1353a4c +9d8ba19 commit2b1c84eCopy full SHA for 2b1c84e
.github/workflows/tests.yml
@@ -4,6 +4,9 @@ on:
4
push:
5
branches:
6
-main
7
+pull_request:
8
+branches:
9
+ -main
10
workflow_dispatch:
11
12
env:
@@ -49,9 +52,9 @@ jobs:
49
52
uses:actions/cache@v4
50
53
with:
51
54
path:Library
-key:Library-test-project-${{ matrix.targetPlatform }}-${{matrix.unityVersion }}
55
+key:Library-${{ matrix.unityVersion }}-${{hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
56
restore-keys:|
- Library-test-project-
57
+ Library-${{ matrix.unityVersion }}-
58
Library-
59
60
-name:Run tests
@@ -63,4 +66,12 @@ jobs:
63
66
64
67
githubToken:${{ secrets.GITHUB_TOKEN }}
65
68
artifactsPath:${{ matrix.testMode }}-artifacts
-unityVersion:${{ matrix.unityVersion }}
69
+unityVersion:${{ matrix.unityVersion }}
70
+testMode:${{ matrix.testMode }}
71
+
72
+ -name:Upload test results
73
+if:always()
74
+uses:actions/upload-artifact@v4
75
+with:
76
+name:Test results (${{ matrix.testMode }}-${{ matrix.unityVersion }})
77
+path:${{ matrix.testMode }}-artifacts