diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1e4838f..d6249318 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,6 +118,9 @@ jobs: - name: Install dependencies in playground working-directory: ./playground run: pnpm install --no-frozen-lockfile + env: + # Skip Cypress installation temporarily, we'll install it later with cache + CYPRESS_INSTALL_BINARY: 0 # https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml#L62 # Install playwright's binary under custom directory to cache diff --git a/template/config/cypress/package.json b/template/config/cypress/package.json index 49c1dc94..4714685a 100644 --- a/template/config/cypress/package.json +++ b/template/config/cypress/package.json @@ -1,5 +1,6 @@ { "scripts": { + "prepare": "cypress install", "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'", "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'" },