Skip to content

Commit 7be6b23

Browse files
authored
fix: cypress binary is installed on postinstall script which is now disabled [SPA-3604] (#1393)
* fix: force install for cypress to repopulate missing cache * chore: added comment * chore: fix comment * fix: delete codeql.yml handled in settings
1 parent 79daec0 commit 7be6b23

File tree

2 files changed

+5
-32
lines changed

2 files changed

+5
-32
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
restore-keys: cypress-${{ runner.os }}-
3030
- name: Install dependencies
3131
run: npm ci
32+
# cypress binary is installed via postinstall script which is blocked with ignore-scripts=true
33+
# if missing from cache, we need to run it conditionally before saving binary in cache
34+
- name: Install cypress dependencies
35+
if: steps.restore-cypress.outputs.cache-hit != 'true'
36+
run: npx cypress install
3237
- name: Save Cypress Binary
3338
if: steps.restore-cypress.outputs.cache-hit != 'true'
3439
uses: actions/cache/save@v4

.github/workflows/codeql.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)