|
|
@ -22,14 +22,15 @@ jobs: |
|
|
command: yarn global add node-gyp && yarn install |
|
|
command: yarn global add node-gyp && yarn install |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
name: Restore Yarn Package Cache |
|
|
name: Restore Yarn Package Cache |
|
|
keys: |
|
|
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: |
|
|
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
- run: |
|
|
- run: |
|
|
name: Install Dependencies |
|
|
name: Install Dependencies |
|
|
command: yarn install --immutable |
|
|
command: yarn install --immutable |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
name: Save Yarn Package Cache |
|
|
name: Save Yarn Package Cache |
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: |
|
|
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ~/.cache/yarn |
|
|
- ~/.cache/yarn |
|
|
lint: |
|
|
lint: |
|
|
@ -39,8 +40,8 @@ jobs: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
name: Restore Yarn Package Cache |
|
|
name: Restore Yarn Package Cache |
|
|
keys: |
|
|
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: |
|
|
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
- run: |
|
|
- run: |
|
|
name: "Lint Code" |
|
|
name: "Lint Code" |
|
|
command: yarn lint && yarn format:check |
|
|
command: yarn lint && yarn format:check |
|
|
@ -51,8 +52,8 @@ jobs: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
name: Restore Yarn Package Cache |
|
|
name: Restore Yarn Package Cache |
|
|
keys: |
|
|
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
|
|
|
|
|
key: |
|
|
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
- run: |
|
|
- run: |
|
|
name: "Unit Test" |
|
|
name: "Unit Test" |
|
|
command: yarn test:ci |
|
|
command: yarn test:ci |