From 7ef198042677bcbd1d030c33811ed6e7517eda09 Mon Sep 17 00:00:00 2001 From: Dustin Byrne Date: Fri, 2 Feb 2024 15:46:37 -0500 Subject: [PATCH] ci: Cache VSCode Insiders for test runners --- .github/workflows/ci.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 33829a98..d2121b2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,7 @@ jobs: cache: yarn - run: yarn install --immutable - run: yarn pretest + - run: yarn test:precache - run: yarn compile unit: @@ -120,7 +121,6 @@ jobs: name: Run system tests release: - name: Package and release to VS Code marketplace runs-on: ubuntu-latest needs: [unit, integration, system] if: github.ref == 'refs/heads/master' diff --git a/package.json b/package.json index 2257fb5a..20a9a008 100644 --- a/package.json +++ b/package.json @@ -428,6 +428,7 @@ "vscode:prepublish": "yarn run compile", "lint": "eslint . --ext .ts", "pretest": "yarn run lint && tsc --strict --skipLibCheck", + "test:precache": "node -e 'require(\"@vscode/test-electron\").downloadAndUnzipVSCode()'", "test:integration": "ts-node ./test/integrationTest.ts", "test:web-client": "mocha web/test/*.test.mjs", "test:system": "ts-node test/systemTest.ts",