Yield generated for 0a51d723-9283-4b0a-90bd-001aa65aed09
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.
 
 
 

56 lines
1.4 KiB

version: 2.1
jobs:
build:
docker:
- image: circleci/node:13 # the primary container, where your job's commands are run
auth:
username: nicodrg
password: Ndrg100394 # context / project UI env-var reference
steps:
- checkout
- restore_cache:
name: Restore Yarn package cache
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn global add node-gyp && yarn install
- save_cache:
name: Save Yarn package cache
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
paths:
- ./.cache/yarn
lint:
steps:
- checkout
- restore_cache:
name: Restore Yarn package cache
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: Analyse code with tslint
command: yarn lint
- run:
name: Format code with prettier
command: yarn format:check
test:
steps:
- checkout
- restore_cache:
name: Restore Yarn package cache
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: Run test with jest
command: yarn test:ci
workflows:
version: 2
integration:
jobs:
- build
- lint:
requires:
- build
- test:
requires:
- lint