|
|
@ -29,8 +29,26 @@ jobs: |
|
|
keys: |
|
|
keys: |
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
- run: yarn test:ci |
|
|
- run: yarn test:ci |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
db: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: cimg/node:12.18.4 |
|
|
|
|
|
environment: |
|
|
|
|
|
DATABASE_URL: postgres://logan:chucknorris@localhost:5432/dbCI |
|
|
|
|
|
JWT_SECRET: some string yo want |
|
|
|
|
|
API_PORT: 3000 |
|
|
|
|
|
API_HOST: localhost |
|
|
|
|
|
API_PROTOCOL: http |
|
|
|
|
|
- image: circleci/postgres:9.6.2-alpine |
|
|
|
|
|
environment: |
|
|
|
|
|
POSTGRES_USER: logan |
|
|
|
|
|
POSTGRES_DB: dbCI |
|
|
|
|
|
POSTGRES_PASSWORD: chucknorris |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
keys: |
|
|
|
|
|
- npm-v2-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
|
|
- run: yarn test:e2e |
|
|
|
|
|
|
|
|
workflows: |
|
|
workflows: |
|
|
version : 2 |
|
|
version : 2 |
|
|
@ -41,5 +59,8 @@ workflows: |
|
|
requires: |
|
|
requires: |
|
|
- build |
|
|
- build |
|
|
- test: |
|
|
- test: |
|
|
|
|
|
requires: |
|
|
|
|
|
- build |
|
|
|
|
|
- db: |
|
|
requires: |
|
|
requires: |
|
|
- build |
|
|
- build |