Yield generated for a9070846-1033-4075-a630-54e08ac88751
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.
 

66 lines
1.6 KiB

version: 2.1
jobs:
yarninstall:
docker:
- image: cimg/node:lts
auth:
username: henriboulnois
password: $DOCKERHUB_PASSWORD
steps:
- checkout
- restore_cache:
keys:
- npm-v2-dependencies-{{ checksum "yarn.lock" }}
- npm-v2-dependencies
- run: yarn install
- save_cache:
paths:
- node_modules
key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
yarnlint:
docker:
- image: cimg/node:lts
auth:
username: henriboulnois
password: $DOCKERHUB_PASSWORD
steps:
- checkout
- restore_cache:
keys:
- npm-v2-dependencies-{{ checksum "yarn.lock" }}
- npm-v2-dependencies
- run: yarn lint
- run: yarn format:check
- save_cache:
paths:
- node_modules
key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
unittest:
docker:
- image: cimg/node:lts
auth:
username: henriboulnois
password: $DOCKERHUB_PASSWORD
steps:
- checkout
- restore_cache:
keys:
- npm-v2-dependencies-{{ checksum "yarn.lock" }}
- npm-v2-dependencies
- run: yarn test
- save_cache:
paths:
- node_modules
key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
workflows:
build:
jobs:
- yarninstall
- yarnlint:
requires:
- yarninstall
- unittest:
requires:
- yarninstall
- yarnlint