33 lines
787 B
YAML
33 lines
787 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
branches:
|
|
only:
|
|
- master
|
|
- dev
|
|
working_directory: ~/code
|
|
docker:
|
|
- image: circleci/node:10.12.0-stretch
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
name: Restore Yarn Package Cache
|
|
keys:
|
|
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
- run:
|
|
name: Install Dependencies
|
|
command: yarn install
|
|
- save_cache:
|
|
name: Save Yarn Package Cache
|
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
paths:
|
|
- ~/.cache/yarn
|
|
- run:
|
|
name: lint
|
|
command: yarn lint
|
|
- run:
|
|
name: build
|
|
command: yarn build
|
|
- store_artifacts:
|
|
path: public/report.html
|
|
prefix: ''
|