Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance restore cache to also install missing deps #2317

Merged
merged 4 commits into from
Mar 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 2.1
orbs:
jq: circleci/jq@2.2.0
browser-tools: circleci/browser-tools@1.1
node: circleci/node@5.0.0

executors:
node_latest:
Expand All @@ -13,7 +14,7 @@ executors:
password: $DOCKERHUB_PASSWORD
php_56_mysql:
docker:
- image: cimg/php:5.6
- image: cimg/php:5.6-node
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand All @@ -23,7 +24,7 @@ executors:
password: $DOCKERHUB_PASSWORD
php_74_mysql:
docker:
- image: cimg/php:7.4
- image: cimg/php:7.4-node
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down Expand Up @@ -59,7 +60,7 @@ executors:
password: $DOCKERHUB_PASSWORD
php_80_mysql:
docker:
- image: cimg/php:8.0
- image: cimg/php:8.0-node
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand All @@ -71,7 +72,7 @@ executors:
password: $DOCKERHUB_PASSWORD
php_81_mysql:
docker:
- image: cimg/php:8.1
- image: cimg/php:8.1-node
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down Expand Up @@ -345,6 +346,11 @@ commands:
- restore_cache:
keys:
- yarn-deps-{{ .Environment.CACHE_VERSION }}
- run:
name: Install dependencies missing from cache
command: |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
yarn install --frozen-lockfile

restore_update_cypress_cache:
steps:
Expand Down Expand Up @@ -530,8 +536,11 @@ commands:
default: false
steps:
- checkout
- node/install:
node-version: '16.14'
- attach_workspace:
at: ~/project
- restore_yarn_cache
- restore_composer_cache
- wait_for_mysql
- when:
Expand Down