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.
58 lines
1.2 KiB
58 lines
1.2 KiB
version: 2.1
|
|
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: cimg/node:lts
|
|
auth:
|
|
username: adrienba
|
|
password: $MYDOCKERHUB_PASSWORD
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
|
|
- npm-v1-dependencies
|
|
- run:
|
|
name: "yarn install"
|
|
command: yarn install
|
|
- save_cache:
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- node_modules
|
|
yarnlint:
|
|
docker:
|
|
- image: cimg/node:lts
|
|
auth:
|
|
username: adrienba
|
|
password: $MYDOCKERHUB_PASSWORD
|
|
steps:
|
|
- run:
|
|
name: "yarn lint"
|
|
command: yarn lint
|
|
- run:
|
|
name: "yarn format:check"
|
|
command: yarn format:check
|
|
yarntestci:
|
|
docker:
|
|
- image: cimg/node:lts
|
|
auth:
|
|
username: adrienba
|
|
password: $MYDOCKERHUB_PASSWORD
|
|
steps:
|
|
- run:
|
|
name: "yarn test:ci"
|
|
command: yarn test:ci
|
|
|
|
|
|
workflows:
|
|
build:
|
|
jobs:
|
|
- build
|
|
- yarnlint:
|
|
requireds:
|
|
- build
|
|
- yarntestci:
|
|
requires:
|
|
- build
|
|
- yarnlint
|