33 lines
785 B
YAML
33 lines
785 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
branches:
|
|
only:
|
|
- master
|
|
- dev
|
|
working_directory: ~/code
|
|
docker:
|
|
- image: circleci/node:12.8.1-buster
|
|
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: ''
|