Yield generated for f2f37b67-61ad-4fe1-9568-5fc3d3fb0eaf
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.
 
 

71 lines
1.7 KiB

version: 2
jobs:
build: &shared-config
docker:
- image: circleci/node:lts-fermium
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}-v1
- dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "package.json" }}-v1
lint:
<<: *shared-config
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-v1
- run: yarn lint
- run: yarn format:check
back-test-unit:
<<: *shared-config
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-v1
- run:
command: yarn test
environment:
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psqluer
back-test-e2e:
docker:
- image: circleci/node:lts-fermium
- image: circleci/postgres:9.6.5
environment:
POSTGRES_DB: psqluer
POSTGRES_USER: psqluer
POSTGRES_PASSWORD: psqlpassword
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-v1
- run:
command: yarn test:e2e
environment:
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psqluer
workflows:
version: 2
build-test-and-lint:
jobs:
- build
- back-test-unit:
requires:
- build
- back-test-e2e:
requires:
- build
- lint:
requires:
- build