Skip to content

Commit a38ecdb

Browse files
ci: also cache Cypress binary for e2e test
* ci: also cache Cypress binary for e2e test * ci: explicitly install cypress to deal with missing cache
1 parent eb0c81e commit a38ecdb

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/reusable__e2e-testing.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,27 @@ jobs:
7373
with:
7474
node-version: ${{ vars.NODE_VERSION }}
7575

76+
- name: Cache Cypress binary
77+
uses: actions/cache@v6
78+
with:
79+
path: ~/.cache/Cypress
80+
key: cypress-binary-${{ runner.os }}-${{ hashFiles('frontend/pnpm-lock.yaml') }}
81+
restore-keys: |
82+
cypress-binary-${{ runner.os }}-
83+
84+
- name: Install dependencies
85+
working-directory: frontend
86+
run: pnpm install --frozen-lockfile
87+
88+
- name: Install Cypress binary
89+
working-directory: frontend
90+
run: pnpm exec cypress install
91+
7692
- name: Cypress run e2e tests
7793
uses: cypress-io/github-action@v7.4.0
7894
with:
7995
working-directory: frontend
80-
install: true
81-
package-manager-cache: pnpm
96+
install: false
8297
wait-on: 'http://localhost:4200/'
8398
wait-on-timeout: 300
8499
browser: chrome

0 commit comments

Comments
 (0)