Bump actions/upload-artifact from 4 to 6 #3
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: Code OSS (Windows Only) | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - 'release/*' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| env: | |
| VSCODE_QUALITY: 'oss' | |
| jobs: | |
| compile: | |
| name: Compile & Hygiene (Windows) | |
| runs-on: [ self-hosted, 1ES.Pool=1es-vscode-oss-windows-2022-x64 ] | |
| env: | |
| NPM_ARCH: x64 | |
| VSCODE_ARCH: x64 | |
| steps: | |
| - name: Checkout microsoft/vscode | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Prepare node_modules cache key | |
| shell: pwsh | |
| run: | | |
| mkdir .build -ea 0 | |
| node build/azure-pipelines/common/computeNodeModulesCacheKey.ts win32 $env:VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash | |
| - name: Restore node_modules cache | |
| id: cache-node-modules | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: .build/node_modules_cache | |
| key: "node_modules-windows-compile-${{ hashFiles('.build/packagelockhash') }}" | |
| - name: Extract node_modules cache | |
| if: steps.cache-node-modules.outputs.cache-hit == 'true' | |
| shell: pwsh | |
| run: 7z.exe x .build/node_modules_cache/cache.7z -aoa | |
| - name: Install dependencies | |
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
| shell: pwsh | |
| run: | | |
| . build/azure-pipelines/win32/exec.ps1 | |
| $ErrorActionPreference = "Stop" | |
| for ($i = 1; $i -le 5; $i++) { | |
| try { | |
| exec { npm ci } | |
| break | |
| } | |
| catch { | |
| if ($i -eq 5) { | |
| Write-Error "npm ci failed after 5 attempts" | |
| throw | |
| } | |
| Write-Host "npm ci failed attempt $i, retrying..." | |
| Start-Sleep -Seconds 2 | |
| } | |
| } | |
| env: | |
| npm_config_arch: ${{ env.NPM_ARCH }} | |
| npm_config_foreground_scripts: "true" | |
| VSCODE_ARCH: ${{ env.VSCODE_ARCH }} | |
| ELECTRON_SKIP_BINARY_DOWNLOAD: 1 | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create node_modules archive | |
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
| shell: pwsh | |
| run: | | |
| . build/azure-pipelines/win32/exec.ps1 | |
| $ErrorActionPreference = "Stop" | |
| exec { node build/azure-pipelines/common/listNodeModules.ts .build/node_modules_list.txt } | |
| exec { mkdir -Force .build/node_modules_cache } | |
| exec { 7z.exe a .build/node_modules_cache/cache.7z -mx3 `@.build/node_modules_list.txt } | |
| - name: Type check /build/ scripts | |
| shell: pwsh | |
| run: npm run typecheck | |
| working-directory: build | |
| - name: Compile & Hygiene | |
| shell: pwsh | |
| run: npm exec -- npm-run-all2 -lp core-ci extensions-ci hygiene eslint valid-layers-check define-class-fields-check vscode-dts-compile-check tsec-compile-check test-build-scripts | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| windows-electron-tests: | |
| name: Windows - Electron | |
| uses: ./.github/workflows/pr-win32-test.yml | |
| with: | |
| job_name: Electron | |
| electron_tests: true | |
| windows-browser-tests: | |
| name: Windows - Browser | |
| uses: ./.github/workflows/pr-win32-test.yml | |
| with: | |
| job_name: Browser | |
| browser_tests: true | |
| windows-remote-tests: | |
| name: Windows - Remote | |
| uses: ./.github/workflows/pr-win32-test.yml | |
| with: | |
| job_name: Remote | |
| remote_tests: true |