Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b1c84e

Browse files
authored
Merge pull request#107 from bazyleu/feature/tests-on-the-prs
Add pull request trigger and upload test results to workflow
2 parents1353a4c +9d8ba19 commit2b1c84e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
-main
7+
pull_request:
8+
branches:
9+
-main
710
workflow_dispatch:
811

912
env:
@@ -49,9 +52,9 @@ jobs:
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
@@ -63,4 +66,12 @@ jobs:
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp