Skip to content

Commit 99cc252

Browse files
committed
Update tests workflow to only run against main temporarily
1 parent 10886a9 commit 99cc252

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

templates/.github/workflows/tests.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ name: Tests
66
# NOTE: You need create a new github repository secret UNITY_LICENSE for this to work.
77
# For further details on how to add secrets, please see github docs https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository
88

9-
on: push
9+
on:
10+
# Currently tests can only be ran against main branch because of how
11+
# Test project is set up. See Samples\ExampleUnityProject\Packages\manifest.json
12+
# Package is always cloned from the main branch for tests
13+
push:
14+
branches:
15+
- main
1016

1117
env:
1218
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

0 commit comments

Comments
 (0)