Show progress for package description tasks on activation #2075
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 | |
| permissions: | |
| contents: read | |
| 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 dev-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'}} | |
| needs: package | |
| uses: swiftlang/github-workflows/.github/workflows/[email protected] | |
| with: | |
| needs_token: true | |
| # Linux | |
| linux_exclude_swift_versions: "${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && '[{\"swift_version\": \"nightly-6.1\"}]' || '[{\"swift_version\": \"nightly-6.1\"},{\"swift_version\": \"nightly-6.2\"},{\"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'}} | |
| VSCODE_SWIFT_VSIX_ID=${{needs.package.outputs.artifact-id}} | |
| GITHUB_REPOSITORY=${{github.repository}} | |
| linux_pre_build_command: . .github/workflows/scripts/setup-linux.sh | |
| linux_build_command: ./scripts/test.sh | |
| # Windows | |
| windows_exclude_swift_versions: "${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && '[{\"swift_version\": \"nightly-6.1\"},{\"swift_version\": \"nightly\"}]' || '[{\"swift_version\": \"nightly-6.1\"},{\"swift_version\": \"nightly-6.2\"},{\"swift_version\": \"nightly\"}]' }}" | |
| windows_env_vars: | | |
| CI=1 | |
| FAST_TEST_RUN=${{ contains(github.event.pull_request.labels.*.name, 'full-test-run') && '0' || '1'}} | |
| VSCODE_SWIFT_VSIX_ID=${{needs.package.outputs.artifact-id}} | |
| GITHUB_REPOSITORY=${{github.repository}} | |
| windows_pre_build_command: . .github\workflows\scripts\windows\setup.ps1 | |
| windows_build_command: Invoke-Program scripts\test_windows.ps1 | |
| enable_windows_docker: false | |
| soundness: | |
| name: Soundness | |
| uses: swiftlang/github-workflows/.github/workflows/[email protected] | |
| 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 |