Skip to content

Commit

Permalink
enhance restore cache to also install missing deps (#2317)
Browse files Browse the repository at this point in the history
* enhance restore cache to also install missing deps

* try node tag

* try -node flag

* try using node orb now
  • Loading branch information
AnthonyLedesma committed Mar 10, 2022
1 parent 923a7ad commit b0ce97c
Showing 1 changed file with 13 additions and 4 deletions.
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

0 comments on commit b0ce97c

Please sign in to comment.