rickvanlieshout.com/.circleci/config.yml

41 lines
894 B
YAML
Raw Normal View History

2018-11-09 18:08:48 +01:00
version: 2
jobs:
test:
2018-11-11 13:07:39 +01:00
working_directory: ~/gatsby-starter-lumen
docker:
- image: circleci/node:8.9.1
2018-11-09 18:08:48 +01:00
steps:
- checkout
- restore_cache:
keys:
2018-11-11 13:07:39 +01:00
- dependencies-{{ checksum "yarn.lock" }}
2018-11-09 18:08:48 +01:00
# fallback to using the latest cache if no exact match is found
2018-11-11 13:07:39 +01:00
- dependencies-
2018-11-09 18:08:48 +01:00
- run:
name: Install and build package
command: yarn install --frozen-lockfile
- run:
name: "Lint"
command: yarn lint:all
- run:
name: Coverage
command: yarn test:coverage --runInBand --no-cache
- run:
name: Unit tests
command: yarn test --runInBand --no-cache
- save_cache:
paths:
- node_modules
2018-11-11 13:07:39 +01:00
key: dependencies-{{ checksum "yarn.lock" }}
2018-11-09 18:08:48 +01:00
workflows:
version: 2
build_test:
jobs:
- test