Created
August 24, 2018 21:43
-
-
Save awave1/680d3021af56331d7ea6153498555977 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:9 | |
steps: | |
- checkout | |
- restore_cache: | |
name: Restore Yarn Package Cache | |
keys: | |
- yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }} | |
- yarn-packages-{{ .Branch }} | |
- yarn-packages-master | |
- yarn-packages- | |
- run: yarn install | |
- save_cache: | |
name: Save Yarn Package Cache | |
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }} | |
paths: | |
- node_modules/ | |
- run: yarn test | |
- run: yarn lint | |
integration: | |
docker: | |
- image: circleci/node:9-browsers | |
steps: | |
- checkout | |
- restore_cache: | |
name: Restore Yarn Package Cache | |
keys: | |
- yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }} | |
- yarn-packages-{{ .Branch }} | |
- yarn-packages- | |
- run: yarn install | |
- save_cache: | |
name: Save Yarn Package Cache | |
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }} | |
paths: | |
- node_modules/ | |
- run: yarn test:browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment