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.
26 lines
675 B
26 lines
675 B
version: 2.1
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: cimg/node:14.10.1
|
|
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
|
|
check_format:
|
|
steps:
|
|
- checkout
|
|
- run : yarn lint && yarn format:check
|
|
|
|
workflows:
|
|
build_and_test:
|
|
jobs:
|
|
- build
|
|
- check_format:
|
|
requires:
|
|
- build
|