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:
commit
c109a4e27f
1 changed files with 13 additions and 0 deletions
13
.github/workflows/pr_checks.yaml
vendored
13
.github/workflows/pr_checks.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue