-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4847 from MetaMask/node-version-check
Enforce usage of node 8.11.3 and npm 6.1.0
- Loading branch information
Showing
5 changed files
with
39 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,30 +102,29 @@ jobs: | |
- checkout | ||
- restore_cache: | ||
keys: | ||
- dependency-cache-{{ checksum "package-lock.json" }} | ||
- v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- dependency-cache- | ||
- v1.0-dependency-cache- | ||
- run: | ||
name: Install npm 6 + deps via npm | ||
command: | | ||
sudo npm install -g [email protected] && npm install | ||
sudo npm install -g [email protected] && npm install --no-save | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
|
||
prep-deps-firefox: | ||
docker: | ||
- image: circleci/node:8.11.3-browsers | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-firefox- | ||
key: v1.0-dependency-cache-firefox- | ||
- run: | ||
name: Download Firefox If needed | ||
command: ./.circleci/scripts/firefox-download.sh | ||
- save_cache: | ||
key: dependency-cache-firefox- | ||
key: v1.0-dependency-cache-firefox- | ||
paths: | ||
- firefox | ||
|
||
|
@@ -135,7 +134,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: build:dist | ||
command: npm run dist | ||
|
@@ -154,7 +153,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: build:dist | ||
command: npm run doc | ||
|
@@ -169,7 +168,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Get Scss Cache key | ||
# this allows us to checksum against a whole directory | ||
|
@@ -188,7 +187,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Test | ||
command: npm run lint | ||
|
@@ -199,7 +198,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Test | ||
command: npx nsp check | ||
|
@@ -210,7 +209,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- restore_cache: | ||
key: build-cache-{{ .Revision }} | ||
- run: | ||
|
@@ -226,12 +225,12 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-firefox- | ||
key: v1.0-dependency-cache-firefox- | ||
- run: | ||
name: Install firefox | ||
command: ./.circleci/scripts/firefox-install.sh | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- restore_cache: | ||
key: build-cache-{{ .Revision }} | ||
- run: | ||
|
@@ -247,7 +246,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- restore_cache: | ||
key: build-cache-{{ .Revision }} | ||
- run: | ||
|
@@ -263,12 +262,12 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-firefox- | ||
key: v1.0-dependency-cache-firefox- | ||
- run: | ||
name: Install firefox | ||
command: ./.circleci/scripts/firefox-install.sh | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- restore_cache: | ||
key: build-cache-{{ .Revision }} | ||
- run: | ||
|
@@ -284,7 +283,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- restore_cache: | ||
key: build-cache-{{ .Revision }} | ||
- run: | ||
|
@@ -301,7 +300,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- restore_cache: | ||
key: build-cache-{{ .Revision }} | ||
- restore_cache: | ||
|
@@ -328,7 +327,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- restore_cache: | ||
key: build-cache-{{ .Revision }} | ||
- restore_cache: | ||
|
@@ -351,7 +350,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: test:coverage | ||
command: npm run test:coverage | ||
|
@@ -364,12 +363,12 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-firefox- | ||
key: v1.0-dependency-cache-firefox- | ||
- run: | ||
name: Install firefox | ||
command: ./.circleci/scripts/firefox-install.sh | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Get Scss Cache key | ||
# this allows us to checksum against a whole directory | ||
|
@@ -388,7 +387,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Get Scss Cache key | ||
# this allows us to checksum against a whole directory | ||
|
@@ -407,12 +406,12 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-firefox- | ||
key: v1.0-dependency-cache-firefox- | ||
- run: | ||
name: Install firefox | ||
command: ./.circleci/scripts/firefox-install.sh | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Get Scss Cache key | ||
# this allows us to checksum against a whole directory | ||
|
@@ -431,7 +430,7 @@ jobs: | |
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "package-lock.json" }} | ||
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Get Scss Cache key | ||
# this allows us to checksum against a whole directory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,6 +307,7 @@ | |
"watchify": "^3.11.0" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0" | ||
"node": "8.11.3", | ||
"npm": "^6.1.0" | ||
} | ||
} |