@@ -192,112 +192,15 @@ jobs:
192192 AZURE_OPENAI_GPT41_API_KEY : ${{ secrets.AZURE_OPENAI_GPT41_API_KEY }}
193193 VOYAGE_API_KEY : ${{ secrets.VOYAGE_API_KEY }}
194194
195- vscode-get-test-file-matrix :
196- runs-on : ubuntu-latest
197- outputs :
198- test_file_matrix : ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }}
199- steps :
200- - uses : actions/checkout@v5
201- - uses : actions/setup-node@v4
202- with :
203- node-version-file : " .nvmrc"
204-
205- - name : Cache npm
206- uses : actions/cache@v4
207- with :
208- path : ~/.npm
209- key : ${{ runner.os }}-npm-cache-matrix-${{ hashFiles('core/package-lock.json', 'extensions/vscode/package-lock.json') }}
210-
211- - name : Cache packages node_modules
212- uses : actions/cache@v4
213- with :
214- path : |
215- packages/*/node_modules
216- key : ${{ runner.os }}-packages-node-modules-${{ hashFiles('packages/*/package-lock.json') }}
217-
218- - name : Cache core node modules
219- uses : actions/cache@v4
220- with :
221- path : core/node_modules
222- key : ${{ runner.os }}-core-node-modules-${{ hashFiles('core/package-lock.json') }}
223-
224- - name : Cache vscode extension node modules
225- uses : actions/cache@v4
226- id : vscode-cache
227- with :
228- path : extensions/vscode/node_modules
229- key : ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }}
230-
231- - name : Build packages and get test files
232- id : vscode-get-test-file-matrix
233- run : |
234- node ./scripts/build-packages.js
235- cd extensions/vscode
236- npm ci
237- npm run e2e:compile
238- if [[ "${{ github.event.pull_request.head.repo.fork }}" == "true" || "${{ github.actor }}" == "dependabot[bot]" ]]; then
239- # Exclude SSH tests for forks
240- FILES=$(ls -1 e2e/_output/tests/*.test.js | grep -v "SSH" | jq -R . | jq -s .)
241- else
242- # Include all tests for non-forks
243- FILES=$(ls -1 e2e/_output/tests/*.test.js | jq -R . | jq -s .)
244- fi
245- echo "test_file_matrix<<EOF" >> $GITHUB_OUTPUT
246- echo "$FILES" >> $GITHUB_OUTPUT
247- echo "EOF" >> $GITHUB_OUTPUT
248- env :
249- # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333
250- GITHUB_TOKEN : ${{ secrets.CI_GITHUB_TOKEN }}
251-
252- - name : Debug Outputs
253- run : |
254- echo "Test files: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }}"
255-
256- vscode-package-extension-linux :
257- runs-on : ubuntu-latest
258- timeout-minutes : 15
259- steps :
260- - uses : actions/checkout@v5
261- with :
262- fetch-depth : 0
263-
264- - name : Build VS Code extension
265- uses : ./.github/actions/build-vscode-extension
266- with :
267- platform : linux
268- arch : x64
269- npm_config_arch : x64
270- pre-release : false
271- commit-sha : ${{ github.sha }}
272- github-token : ${{ secrets.GITHUB_TOKEN }}
273-
274- - name : Upload build artifact
275- uses : actions/upload-artifact@v4
276- with :
277- name : vscode-extension-build-Linux
278- path : extensions/vscode/build
279-
280195 vscode-e2e-tests :
281- name : ${{ matrix.test_file || 'unknown' }} (${{ matrix.command }})
282- needs : [vscode-get-test-file-matrix, vscode-package-extension-linux]
283- runs-on : ubuntu-latest
284- timeout-minutes : 15
285- # Tests requiring secrets need approval from maintainers
286- strategy :
287- fail-fast : false
288- matrix :
289- test_file : ${{ fromJson(needs.vscode-get-test-file-matrix.outputs.test_file_matrix) }}
290- command : ["e2e:ci:run", "e2e:ci:run-yaml"]
291- steps :
292- - uses : actions/checkout@v5
293- - name : Run VS Code E2E test
294- uses : ./.github/actions/run-vscode-e2e-test
295- with :
296- test_file : ${{ matrix.test_file }}
297- command : ${{ matrix.command }}
298- ssh_key : ${{ secrets.GH_ACTIONS_SSH_TEST_KEY_PEM }}
299- ssh_host : ${{ secrets.GH_ACTIONS_SSH_TEST_DNS_NAME }}
300- is_fork : ${{ github.event.pull_request.head.repo.fork == true || github.actor == 'dependabot[bot]' }}
196+ uses : ./.github/workflows/e2e-tests.yml
197+ with :
198+ is_fork : ${{ github.event.pull_request.head.repo.fork == true || github.actor == 'dependabot[bot]' }}
199+ secrets :
200+ CI_GITHUB_TOKEN : ${{ secrets.CI_GITHUB_TOKEN }}
201+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
202+ GH_ACTIONS_SSH_TEST_KEY_PEM : ${{ secrets.GH_ACTIONS_SSH_TEST_KEY_PEM }}
203+ GH_ACTIONS_SSH_TEST_DNS_NAME : ${{ secrets.GH_ACTIONS_SSH_TEST_DNS_NAME }}
301204
302205 jetbrains-tests :
303206 runs-on : ubuntu-latest
@@ -350,8 +253,6 @@ jobs:
350253 - vscode-checks
351254 - get-packages-matrix
352255 - packages-checks
353- - vscode-get-test-file-matrix
354- - vscode-package-extension-linux
355256 - vscode-e2e-tests
356257 - jetbrains-tests
357258 - pr-review-action-tests
0 commit comments