Skip to content

Commit

Permalink
check engine and peer deps before installing (#7403)
Browse files Browse the repository at this point in the history
* check engine and peer deps before installing

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
  • Loading branch information
chris48s and repo-ranger[bot] authored Dec 22, 2021
1 parent 31b4aaa commit 6041d62
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ main_steps: &main_steps

- run:
name: Install dependencies
command: npm ci
command: |
npm install --dry-run
npm ci
environment:
# https://docs.cypress.io/guides/getting-started/installing-cypress.html#Skipping-installation
# We don't need to install the Cypress binary in jobs that aren't actually running Cypress.
Expand Down Expand Up @@ -47,7 +49,9 @@ integration_steps: &integration_steps

- run:
name: Install dependencies
command: npm ci
command: |
npm install --dry-run
npm ci
environment:
CYPRESS_INSTALL_BINARY: 0

Expand All @@ -68,7 +72,9 @@ services_steps: &services_steps

- run:
name: Install dependencies
command: npm ci
command: |
npm install --dry-run
npm ci
environment:
CYPRESS_INSTALL_BINARY: 0

Expand Down Expand Up @@ -138,6 +144,9 @@ jobs:
main:
docker:
- image: circleci/node:16
environment:
NPM_CONFIG_ENGINE_STRICT: 'true'
NPM_CONFIG_STRICT_PEER_DEPS: 'true'

<<: *main_steps

Expand All @@ -150,6 +159,9 @@ jobs:
integration:
docker:
- image: circleci/node:16
environment:
NPM_CONFIG_ENGINE_STRICT: 'true'
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
- image: redis

<<: *integration_steps
Expand Down Expand Up @@ -184,12 +196,17 @@ jobs:
frontend:
docker:
- image: circleci/node:16
environment:
NPM_CONFIG_ENGINE_STRICT: 'true'
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
steps:
- checkout

- run:
name: Install dependencies
command: npm ci
command: |
npm install --dry-run
npm ci
environment:
CYPRESS_INSTALL_BINARY: 0

Expand Down Expand Up @@ -225,6 +242,9 @@ jobs:
services:
docker:
- image: circleci/node:16
environment:
NPM_CONFIG_ENGINE_STRICT: 'true'
NPM_CONFIG_STRICT_PEER_DEPS: 'true'

<<: *services_steps

Expand All @@ -237,6 +257,9 @@ jobs:
e2e:
docker:
- image: cypress/base:16.13.0
environment:
NPM_CONFIG_ENGINE_STRICT: 'true'
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
steps:
- checkout

Expand All @@ -247,7 +270,9 @@ jobs:

- run:
name: Install dependencies
command: npm ci
command: |
npm install --dry-run
npm ci
- run:
name: Frontend build
Expand Down

0 comments on commit 6041d62

Please sign in to comment.