Yield generated for c28eb008-374b-4010-b032-8feec60b80c7
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.
 
 
 
 

40 lines
1.1 KiB

version: 2.1
workflows:
version: 2.1
build_and_test:
jobs:
- build
- lint:
requires:
- build
jobs:
build:
docker:
- image: cimg/node:12.18 # the primary container, where your job's commands are run
steps:
- checkout
- run:
name: Install dependencies
command: yarn global add node-gyp && yarn install
- restore_cache:
name: Restore Yarn Package Cache
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --immutable
- save_cache:
name: Save Yarn Package Cache
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
lint:
docker:
- image: cimg/node:12.18
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: "Lint Code"
command: yarn lint && yarn format:check