Merge pull request #4538 from continuedev/nate/cache-extensions-folder

cache the .test-extensions folder to avoid flaky tests due to VS Code Extension Marketplace timeout
This commit is contained in:
Nate Sesti 2025-03-07 21:42:09 -08:00 • committed by GitHub
commit c109a4e27f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -409,6 +409,14 @@ jobs:
path: extensions/vscode/node_modules
key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }}
# We don't want to cache the Continue extension, so it is deleted at the end of the job
- uses: actions/cache@v4
id: test-extensions-cache
with:
path: extensions/vscode/e2e/.test-extensions
# package.json used as the key because that's where the download script is defined
key: vscode-test-extensions-${{ hashFiles('extensions/vscode/package.json') }}
- name: Download build artifact
uses: actions/download-artifact@v4
with:
@ -450,6 +458,11 @@ jobs:
env:
DISPLAY: :99
- name: Delete continue from test extensions
run: |
cd extensions/vscode
rm -rf e2e/.test-extensions/continue*
- name: Upload e2e test screenshots
if: failure()
uses: actions/upload-artifact@v4