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.
43 lines
942 B
43 lines
942 B
version: 2.1
|
|
jobs:
|
|
yarninstall:
|
|
docker:
|
|
- image: cimg/node:lts
|
|
auth:
|
|
username: henriboulnois
|
|
password: $DOCKERHUB_PASSWORD
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
|
|
- npm-v1-dependencies
|
|
- run: yarn install
|
|
- save_cache:
|
|
paths:
|
|
- "node_module"
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
|
|
yarnlint:
|
|
docker:
|
|
- image: cimg/node:lts
|
|
auth:
|
|
username: henriboulnois
|
|
password: $DOCKERHUB_PASSWORD
|
|
steps:
|
|
- run: yarn lint
|
|
- run: yarn format:check
|
|
unittest:
|
|
docker:
|
|
- image: cimg/node:lts
|
|
auth:
|
|
username: henriboulnois
|
|
password: $DOCKERHUB_PASSWORD
|
|
steps:
|
|
- run: yarn test:ci
|
|
|
|
workflows:
|
|
build:
|
|
jobs:
|
|
- yarninstall
|
|
- yarnlint
|
|
- unittest
|