mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
simplify NPM strict checks (#7973)
* simplify engine-strict/strict-peer-deps checks * disable engine-strict for node 12/14 package tests * update docs Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
parent
22afe7b648
commit
07bc0325ee
@ -7,7 +7,6 @@ main_steps: &main_steps
|
|||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
npm install --dry-run
|
|
||||||
npm ci
|
npm ci
|
||||||
environment:
|
environment:
|
||||||
# https://docs.cypress.io/guides/getting-started/installing-cypress.html#Skipping-installation
|
# https://docs.cypress.io/guides/getting-started/installing-cypress.html#Skipping-installation
|
||||||
@ -50,7 +49,6 @@ integration_steps: &integration_steps
|
|||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
npm install --dry-run
|
|
||||||
npm ci
|
npm ci
|
||||||
environment:
|
environment:
|
||||||
CYPRESS_INSTALL_BINARY: 0
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
@ -73,7 +71,6 @@ services_steps: &services_steps
|
|||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
npm install --dry-run
|
|
||||||
npm ci
|
npm ci
|
||||||
environment:
|
environment:
|
||||||
CYPRESS_INSTALL_BINARY: 0
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
@ -116,6 +113,7 @@ package_steps: &package_steps
|
|||||||
MOCHA_FILE: junit/badge-maker/v12/results.xml
|
MOCHA_FILE: junit/badge-maker/v12/results.xml
|
||||||
NODE_VERSION: v12
|
NODE_VERSION: v12
|
||||||
CYPRESS_INSTALL_BINARY: 0
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
NPM_CONFIG_ENGINE_STRICT: 'false'
|
||||||
name: Run package tests on Node 12
|
name: Run package tests on Node 12
|
||||||
command: scripts/run_package_tests.sh
|
command: scripts/run_package_tests.sh
|
||||||
|
|
||||||
@ -125,6 +123,7 @@ package_steps: &package_steps
|
|||||||
MOCHA_FILE: junit/badge-maker/v14/results.xml
|
MOCHA_FILE: junit/badge-maker/v14/results.xml
|
||||||
NODE_VERSION: v14
|
NODE_VERSION: v14
|
||||||
CYPRESS_INSTALL_BINARY: 0
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
|
NPM_CONFIG_ENGINE_STRICT: 'false'
|
||||||
name: Run package tests on Node 14
|
name: Run package tests on Node 14
|
||||||
command: scripts/run_package_tests.sh
|
command: scripts/run_package_tests.sh
|
||||||
|
|
||||||
@ -144,9 +143,6 @@ jobs:
|
|||||||
main:
|
main:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15
|
- image: cimg/node:16.15
|
||||||
environment:
|
|
||||||
NPM_CONFIG_ENGINE_STRICT: 'true'
|
|
||||||
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
|
|
||||||
|
|
||||||
<<: *main_steps
|
<<: *main_steps
|
||||||
|
|
||||||
@ -159,9 +155,6 @@ jobs:
|
|||||||
integration:
|
integration:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15
|
- image: cimg/node:16.15
|
||||||
environment:
|
|
||||||
NPM_CONFIG_ENGINE_STRICT: 'true'
|
|
||||||
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
|
|
||||||
- image: redis
|
- image: redis
|
||||||
|
|
||||||
<<: *integration_steps
|
<<: *integration_steps
|
||||||
@ -196,16 +189,13 @@ jobs:
|
|||||||
frontend:
|
frontend:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15
|
- image: cimg/node:16.15
|
||||||
environment:
|
|
||||||
NPM_CONFIG_ENGINE_STRICT: 'true'
|
|
||||||
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
npm install --dry-run
|
|
||||||
npm ci
|
npm ci
|
||||||
environment:
|
environment:
|
||||||
CYPRESS_INSTALL_BINARY: 0
|
CYPRESS_INSTALL_BINARY: 0
|
||||||
@ -243,9 +233,6 @@ jobs:
|
|||||||
services:
|
services:
|
||||||
docker:
|
docker:
|
||||||
- image: cimg/node:16.15
|
- image: cimg/node:16.15
|
||||||
environment:
|
|
||||||
NPM_CONFIG_ENGINE_STRICT: 'true'
|
|
||||||
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
|
|
||||||
|
|
||||||
<<: *services_steps
|
<<: *services_steps
|
||||||
|
|
||||||
@ -258,9 +245,7 @@ jobs:
|
|||||||
e2e:
|
e2e:
|
||||||
docker:
|
docker:
|
||||||
- image: cypress/base:16.14.0
|
- image: cypress/base:16.14.0
|
||||||
environment:
|
|
||||||
NPM_CONFIG_ENGINE_STRICT: 'true'
|
|
||||||
NPM_CONFIG_STRICT_PEER_DEPS: 'true'
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
@ -272,7 +257,6 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
command: |
|
command: |
|
||||||
npm install --dry-run
|
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
|
@ -9,7 +9,7 @@ COPY package.json package-lock.json /usr/src/app/
|
|||||||
COPY badge-maker /usr/src/app/badge-maker/
|
COPY badge-maker /usr/src/app/badge-maker/
|
||||||
|
|
||||||
RUN apk add python3 make g++
|
RUN apk add python3 make g++
|
||||||
RUN npm install -g "npm@>=7"
|
RUN npm install -g "npm@>=8"
|
||||||
# We need dev deps to build the front end. We don't need Cypress, though.
|
# We need dev deps to build the front end. We don't need Cypress, though.
|
||||||
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci
|
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ and learn about the [GitHub workflow](http://try.github.io/).
|
|||||||
|
|
||||||
#### Node, NPM
|
#### Node, NPM
|
||||||
|
|
||||||
Node >=16 and NPM >=7 is required. If you don't already have them,
|
Node >=16 and NPM >=8 is required. If you don't already have them,
|
||||||
install node and npm: https://nodejs.org/en/download/
|
install node and npm: https://nodejs.org/en/download/
|
||||||
|
|
||||||
### Setup a dev install
|
### Setup a dev install
|
||||||
|
@ -241,8 +241,8 @@
|
|||||||
"url": "^0.11.0"
|
"url": "^0.11.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^16.13.0",
|
"node": ">=16.13.0",
|
||||||
"npm": ">=7.0.0"
|
"npm": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"collective": {
|
"collective": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user