Skip to content

Commit 99e23ae

Browse files
authored
Allow triggering nightly build from PR label (#1271)
* Allow triggering nightly build from PR label Adding the `full-test-run` label to a PR before creating it will trigger the same workflow as the nightly job. Pushing up another commit after adding the label will also switch to running the full test run.
1 parent 25ee843 commit 99e23ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
tests:
9-
name: Test
9+
name: ${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && 'Full Test Run' || 'Test'}}
1010
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
1111
with:
1212
# Linux
@@ -17,15 +17,15 @@ jobs:
1717
NVM_DIR=/usr/local/nvm
1818
CI=1
1919
VSCODE_TEST=1
20-
FAST_TEST_RUN=1
20+
FAST_TEST_RUN=${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && '0' || '1'}}
2121
linux_pre_build_command: . .github/workflows/scripts/setup-linux.sh
2222
linux_build_command: ./docker/test.sh
2323
# Windows
2424
windows_exclude_swift_versions: '[{"swift_version": "nightly-6.0"},{"swift_version": "nightly"}]'
2525
windows_env_vars: |
2626
CI=1
2727
VSCODE_TEST=1
28-
FAST_TEST_RUN=1
28+
FAST_TEST_RUN=${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && '0' || '1'}}
2929
windows_pre_build_command: .github\workflows\scripts\windows\install-nodejs.ps1
3030
windows_build_command: docker\test-windows.ps1
3131
enable_windows_docker: false

0 commit comments

Comments
 (0)