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.
 
 
 
 

47 lines
1.2 KiB

version: 2
docker_defaults: &docker_defaults
docker:
- image: circleci/node:9.5
jobs:
build:
<<: *docker_defaults
branches:
ignore:
- gh-pages
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- v2-yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: bash scripts/install-ci-deps.sh
- save_cache:
name: Save Yarn Package Cache
key: v2-yarn-packages-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- run:
name: Lint
command: yarn lint
- run:
name: Prettier
command: ./node_modules/.bin/prettier -l "{src,webpack,.storybook}/**/*.js"
- run:
name: Flow
command: yarn flow --quiet
# - run:
# name: Test
# command: yarn test
# - run:
# name: Build
# command: yarn dist:dir
# - run:
# name: Generate build stats
# command: "du -h dist | sort -h > /tmp/build-stats.txt"
# - store_artifacts:
# path: /tmp/build-stats.txt
# destination: build-stats.txt