|
|
@ -34,7 +34,25 @@ jobs: |
|
|
- run: |
|
|
- run: |
|
|
command: yarn test |
|
|
command: yarn test |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psqluer |
|
|
|
|
|
|
|
|
DATABASE_URL: postgres://$PG_USER:$PG_PASSWORD@localhost:5432/$PG_USER |
|
|
|
|
|
|
|
|
|
|
|
back-test-e2e: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: circleci/node:lts-fermium |
|
|
|
|
|
- image: circleci/postgres:9.6.5 |
|
|
|
|
|
environment: |
|
|
|
|
|
POSTGRES_DB: $PG_USER |
|
|
|
|
|
POSTGRES_USER: $PG_USER |
|
|
|
|
|
POSTGRES_PASSWORD: $PG_PASSWORD |
|
|
|
|
|
working_directory: ~/repo |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
key: dependencies-{{ checksum "package.json" }}-v1 |
|
|
|
|
|
- run: |
|
|
|
|
|
command: yarn test:e2e |
|
|
|
|
|
environment: |
|
|
|
|
|
DATABASE_URL: postgres://$PG_USER:$PG_PASSWORD@localhost:5432/$PG_USER |
|
|
|
|
|
|
|
|
workflows: |
|
|
workflows: |
|
|
version: 2 |
|
|
version: 2 |
|
|
|