File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ pull_request :
8+ branches :
9+ - main
710 workflow_dispatch :
811
912env :
4952 uses : actions/cache@v4
5053 with :
5154 path : Library
52- key : Library-test-project- ${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
55+ key : Library-${{ matrix.unityVersion }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
5356 restore-keys : |
54- Library-test-project -
57+ Library-${{ matrix.unityVersion }} -
5558 Library-
5659
5760 - name : Run tests
6366 with :
6467 githubToken : ${{ secrets.GITHUB_TOKEN }}
6568 artifactsPath : ${{ matrix.testMode }}-artifacts
66- 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
You can’t perform that action at this time.
0 commit comments