Skip to content

Instantly share code, notes, and snippets.

@awave1
Created August 24, 2018 21:43
Show Gist options
  • Save awave1/680d3021af56331d7ea6153498555977 to your computer and use it in GitHub Desktop.
Save awave1/680d3021af56331d7ea6153498555977 to your computer and use it in GitHub Desktop.
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