You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
867 B
41 lines
867 B
workflows:
|
|
starter:
|
|
jobs:
|
|
- yarn
|
|
install:
|
|
jobs:
|
|
- yarn
|
|
- checks:
|
|
requires:
|
|
- yarn
|
|
|
|
tests:
|
|
jobs:
|
|
- checks
|
|
yarn:
|
|
docker:
|
|
- image: circleci/node:12
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
- run: yarn global add node-gyp && yarn install
|
|
- save_cache:
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ./node_modules
|
|
|
|
checks:
|
|
docker:
|
|
- image: circleci/node:12
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
- run: yarn lint
|
|
- run: yarn format:check
|
|
- run: yarn test:ci
|
|
- save_cache:
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ./node_modules
|