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.
34 lines
828 B
34 lines
828 B
workflows:
|
|
version: 2.1
|
|
jobs:
|
|
- install
|
|
- test:
|
|
requires:
|
|
- install
|
|
|
|
jobs:
|
|
build: install
|
|
docker:
|
|
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
|
|
|
|
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:
|
|
- ~/.cache/yarn
|
|
test:
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
- run: yarn lint && yarn format:check
|
|
- run: yarn test:ci
|
|
- save_cache:
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ./node_modules
|