Allow triggering nightly build from PR label #328
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request | ||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
jobs: | ||
tests: | ||
name: Test | ||
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main | ||
with: | ||
# Linux | ||
linux_exclude_swift_versions: '[{"swift_version": "nightly-6.0"},{"swift_version": "nightly-main"}]' | ||
linux_env_vars: | | ||
NODE_VERSION=v18.19.0 | ||
NODE_PATH=/usr/local/nvm/versions/node/v18.19.0/bin | ||
NVM_DIR=/usr/local/nvm | ||
CI=1 | ||
VSCODE_TEST=1 | ||
FAST_TEST_RUN=1 | ||
linux_pre_build_command: . .github/workflows/scripts/setup-linux.sh | ||
linux_build_command: ./docker/test.sh | ||
# Windows | ||
windows_exclude_swift_versions: '[{"swift_version": "nightly-6.0"},{"swift_version": "nightly"}]' | ||
windows_env_vars: | | ||
CI=1 | ||
VSCODE_TEST=1 | ||
FAST_TEST_RUN=1 | ||
windows_pre_build_command: .github\workflows\scripts\windows\install-nodejs.ps1 | ||
windows_build_command: docker\test-windows.ps1 | ||
enable_windows_docker: false | ||
full_test_run: | ||
name: Full Test Run | ||
if: contains(github.event.pull_request.labels.*.name, 'full-test-run') | ||
uses: ./.github/workflows/nightly.yml | ||
Check failure on line 36 in .github/workflows/pull_request.yml GitHub Actions / .github/workflows/pull_request.ymlInvalid workflow file
|
||
with: | ||
# Linux | ||
linux_exclude_swift_versions: '[{"swift_version": "nightly-6.0"},{"swift_version": "nightly-main"}]' | ||
linux_env_vars: | | ||
NODE_VERSION=v18.19.0 | ||
NODE_PATH=/usr/local/nvm/versions/node/v18.19.0/bin | ||
NVM_DIR=/usr/local/nvm | ||
CI=1 | ||
VSCODE_TEST=1 | ||
linux_pre_build_command: . .github/workflows/scripts/setup-linux.sh | ||
linux_build_command: ./docker/test.sh | ||
# Windows | ||
windows_exclude_swift_versions: '[{"swift_version": "nightly-6.0"},{"swift_version": "nightly"}]' | ||
windows_env_vars: | | ||
CI=1 | ||
VSCODE_TEST=1 | ||
windows_pre_build_command: .github\workflows\scripts\windows\install-nodejs.ps1 | ||
windows_build_command: docker\test-windows.ps1 | ||
enable_windows_docker: false | ||
soundness: | ||
name: Soundness | ||
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | ||
with: | ||
# Pending https://github.com/swiftlang/vscode-swift/pull/1176 | ||
license_header_check_enabled: false | ||
license_header_check_project_name: "VS Code Swift" | ||
api_breakage_check_enabled: false | ||
docs_check_enabled: false | ||
format_check_enabled: false | ||
shell_check_enabled: true | ||
unacceptable_language_check_enabled: true |