|
|
@ -102,30 +102,29 @@ jobs: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
keys: |
|
|
|
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 |
|
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
- dependency-cache- |
|
|
|
- v1.0-dependency-cache- |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Install npm 6 + deps via npm |
|
|
|
name: Install npm 6 + deps via npm |
|
|
|
command: | |
|
|
|
command: | |
|
|
|
sudo npm install -g npm@6.1.0 && npm install |
|
|
|
sudo npm install -g npm@6.1.0 && npm install --no-save |
|
|
|
- save_cache: |
|
|
|
- save_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- node_modules |
|
|
|
- node_modules |
|
|
|
|
|
|
|
|
|
|
|
prep-deps-firefox: |
|
|
|
prep-deps-firefox: |
|
|
|
docker: |
|
|
|
docker: |
|
|
|
- image: circleci/node:8.11.3-browsers |
|
|
|
- image: circleci/node:8.11.3-browsers |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-firefox- |
|
|
|
key: v1.0-dependency-cache-firefox- |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Download Firefox If needed |
|
|
|
name: Download Firefox If needed |
|
|
|
command: ./.circleci/scripts/firefox-download.sh |
|
|
|
command: ./.circleci/scripts/firefox-download.sh |
|
|
|
- save_cache: |
|
|
|
- save_cache: |
|
|
|
key: dependency-cache-firefox- |
|
|
|
key: v1.0-dependency-cache-firefox- |
|
|
|
paths: |
|
|
|
paths: |
|
|
|
- firefox |
|
|
|
- firefox |
|
|
|
|
|
|
|
|
|
|
@ -135,7 +134,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: build:dist |
|
|
|
name: build:dist |
|
|
|
command: npm run dist |
|
|
|
command: npm run dist |
|
|
@ -154,7 +153,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: build:dist |
|
|
|
name: build:dist |
|
|
|
command: npm run doc |
|
|
|
command: npm run doc |
|
|
@ -169,7 +168,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Get Scss Cache key |
|
|
|
name: Get Scss Cache key |
|
|
|
# this allows us to checksum against a whole directory |
|
|
|
# this allows us to checksum against a whole directory |
|
|
@ -188,7 +187,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Test |
|
|
|
name: Test |
|
|
|
command: npm run lint |
|
|
|
command: npm run lint |
|
|
@ -199,7 +198,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Test |
|
|
|
name: Test |
|
|
|
command: npx nsp check |
|
|
|
command: npx nsp check |
|
|
@ -210,7 +209,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
@ -226,12 +225,12 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-firefox- |
|
|
|
key: v1.0-dependency-cache-firefox- |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Install firefox |
|
|
|
name: Install firefox |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
@ -247,7 +246,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
@ -263,12 +262,12 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-firefox- |
|
|
|
key: v1.0-dependency-cache-firefox- |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Install firefox |
|
|
|
name: Install firefox |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
@ -284,7 +283,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
@ -301,7 +300,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
@ -328,7 +327,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
key: build-cache-{{ .Revision }} |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
@ -351,7 +350,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: test:coverage |
|
|
|
name: test:coverage |
|
|
|
command: npm run test:coverage |
|
|
|
command: npm run test:coverage |
|
|
@ -364,12 +363,12 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-firefox- |
|
|
|
key: v1.0-dependency-cache-firefox- |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Install firefox |
|
|
|
name: Install firefox |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Get Scss Cache key |
|
|
|
name: Get Scss Cache key |
|
|
|
# this allows us to checksum against a whole directory |
|
|
|
# this allows us to checksum against a whole directory |
|
|
@ -388,7 +387,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Get Scss Cache key |
|
|
|
name: Get Scss Cache key |
|
|
|
# this allows us to checksum against a whole directory |
|
|
|
# this allows us to checksum against a whole directory |
|
|
@ -407,12 +406,12 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-firefox- |
|
|
|
key: v1.0-dependency-cache-firefox- |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Install firefox |
|
|
|
name: Install firefox |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
command: ./.circleci/scripts/firefox-install.sh |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Get Scss Cache key |
|
|
|
name: Get Scss Cache key |
|
|
|
# this allows us to checksum against a whole directory |
|
|
|
# this allows us to checksum against a whole directory |
|
|
@ -431,7 +430,7 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
key: dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
key: v1.0-dependency-cache-{{ checksum "package-lock.json" }} |
|
|
|
- run: |
|
|
|
- run: |
|
|
|
name: Get Scss Cache key |
|
|
|
name: Get Scss Cache key |
|
|
|
# this allows us to checksum against a whole directory |
|
|
|
# this allows us to checksum against a whole directory |
|
|
|