Bump the all-dependencies group with 3 updates #1030
Workflow file for this run
This file contains hidden or 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: | |
package: | |
name: Package Extension | |
runs-on: ubuntu-latest | |
container: | |
image: swift:6.0-jammy | |
outputs: | |
artifact-id: ${{ steps.archive.outputs.artifact-id }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build Extension | |
run: | | |
export NODE_VERSION=v20.19.0 | |
export NODE_PATH=/usr/local/nvm/versions/node/v20.19.0/bin | |
export NVM_DIR=/usr/local/nvm | |
. .github/workflows/scripts/setup-linux.sh | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
npm ci | |
npm run package | |
npm run preview-package | |
for file in *.vsix; do | |
name="$(basename "$file" .vsix)-${{github.run_number}}.vsix" | |
echo "Created bundle $name" | |
mv "$file" "$name" | |
done | |
git config --global --add safe.directory $PWD | |
git rev-parse HEAD > vscode-swift-sha.txt | |
- name: Archive production artifacts | |
id: archive | |
uses: actions/upload-artifact@v4 | |
if: ${{ env.ACT != 'true' }} | |
with: | |
if-no-files-found: error | |
name: vscode-swift-extension | |
path: | | |
*.vsix | |
vscode-swift-sha.txt | |
tests: | |
name: ${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && 'Full Test Run' || 'Test'}} | |
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main | |
with: | |
# Linux | |
linux_exclude_swift_versions: '[{"swift_version": "nightly-6.1"},{"swift_version": "nightly-main"}]' | |
linux_env_vars: | | |
NODE_VERSION=v20.19.0 | |
NODE_PATH=/usr/local/nvm/versions/node/v20.19.0/bin | |
NVM_DIR=/usr/local/nvm | |
CI=1 | |
FAST_TEST_RUN=${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && '0' || '1'}} | |
linux_pre_build_command: . .github/workflows/scripts/setup-linux.sh | |
linux_build_command: ./scripts/test.sh | |
# Windows | |
windows_exclude_swift_versions: '[{"swift_version": "nightly-6.1"},{"swift_version": "nightly"}]' | |
windows_env_vars: | | |
CI=1 | |
FAST_TEST_RUN=${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && '0' || '1'}} | |
windows_pre_build_command: .github\workflows\scripts\windows\setup.ps1 | |
windows_build_command: scripts\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 |