Skip to content

Commit

Permalink
cache cypress binary
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Jan 7, 2025
1 parent a32e3ed commit f585487
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/fishing-map-e2e/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ steps:
restore_cache \
--bucket=gs://frontend-cache-dependencies \
--key=node_modules-$( checksum yarn.lock )
restore_cache \
--bucket=gs://frontend-cache-dependencies \
--key=cypress-cache-$( checksum yarn.lock )
restore_cache \
--bucket=gs://frontend-cache-dependencies \
--key=yarn-$( checksum yarn.lock )
Expand All @@ -45,6 +48,11 @@ steps:
--key=node_modules-$( checksum yarn.lock ) \
--path=./node_modules \
--no-clobber
save_cache \
--bucket=gs://frontend-cache-dependencies \
--key=cypress-cache-$( checksum yarn.lock ) \
--path=/builder/home/.cache \
--no-clobber
save_cache \
--bucket=gs://frontend-cache-dependencies \
--key=yarn-$( checksum yarn.lock ) \
Expand All @@ -62,6 +70,7 @@ steps:
allowFailure: true
entrypoint: 'bash'
env:
- 'CYPRESS_CACHE_FOLDER=/builder/home/.cache/Cypress'
- 'CYPRESS_publicApiGateway=$_NEXT_PUBLIC_API_GATEWAY'
- 'CYPRESS_basicAuth=$_BASIC_AUTH'
- 'CYPRESS_basicAuthUser=$_BASIC_AUTH_USER'
Expand Down
8 changes: 8 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ steps:
restore_cache \
--bucket=gs://frontend-cache-dependencies \
--key=node_modules-$( checksum yarn.lock )
restore_cache \
--bucket=gs://frontend-cache-dependencies \
--key=cypress-cache-$( checksum yarn.lock )
restore_cache \
--bucket=gs://frontend-cache-dependencies \
--key=yarn-$( checksum yarn.lock )
Expand All @@ -35,6 +38,11 @@ steps:
--key=node_modules-$( checksum yarn.lock ) \
--path=./node_modules \
--no-clobber
save_cache \
--bucket=gs://frontend-cache-dependencies \
--key=cypress-cache-$( checksum yarn.lock ) \
--path=/builder/home/.cache \
--no-clobber
save_cache \
--bucket=gs://frontend-cache-dependencies \
--key=yarn-$( checksum yarn.lock ) \
Expand Down

0 comments on commit f585487

Please sign in to comment.