Skip to content

Commit 520a3cc

Browse files
committed
Add 'actions/cache@v5' for VS Code integration test download
Adds a common cache for actions workflows that download the latest instance of VS Code for integration testing purposes.
1 parent 0c0a715 commit 520a3cc

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/build-and-test-extension.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ jobs:
6363
add-to-path: 'true'
6464
install-language-runtimes: 'false'
6565

66+
- name: Cache VS Code for integration tests
67+
uses: actions/cache@v5
68+
with:
69+
key: vscode-test-${{ runner.os }}-stable
70+
path: extensions/vscode/.vscode-test
71+
72+
- name: Download VS Code for integration tests
73+
working-directory: extensions/vscode
74+
run: npm run download:vscode
75+
6676
- name: Run Extension Host integration tests
6777
working-directory: extensions/vscode
6878
run: xvfb-run -a npm run test:integration

.github/workflows/copilot-setup-steps.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ jobs:
7777
npm run bundle
7878
npm run bundle:server
7979
80+
- name: Copilot Setup - Cache VS Code for integration tests
81+
uses: actions/cache@v5
82+
with:
83+
key: vscode-test-${{ runner.os }}-stable
84+
path: extensions/vscode/.vscode-test
85+
8086
- name: Copilot Setup - Download VS Code for integration tests
8187
working-directory: extensions/vscode
8288
run: npm run download:vscode

0 commit comments

Comments
 (0)