|
|
@ -3,12 +3,6 @@ jobs: |
|
|
build: |
|
|
build: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
- image: cimg/node:14.10.1 |
|
|
- image: circleci/postgres:latest |
|
|
|
|
|
environment: |
|
|
|
|
|
POSTGRES_USER: e2e |
|
|
|
|
|
POSTGRES_DB: psdb |
|
|
|
|
|
POSTGRES_PASSWORD: password |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -37,6 +31,11 @@ jobs: |
|
|
test_e2e: |
|
|
test_e2e: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
- image: cimg/node:14.10.1 |
|
|
|
|
|
- image: circleci/postgres |
|
|
|
|
|
environment: |
|
|
|
|
|
POSTGRES_USER: e2e |
|
|
|
|
|
POSTGRES_DB: psdb |
|
|
|
|
|
POSTGRES_PASSWORD: password |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -44,7 +43,7 @@ jobs: |
|
|
- run: |
|
|
- run: |
|
|
command: yarn test:e2e |
|
|
command: yarn test:e2e |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB |
|
|
|
|
|
|
|
|
DATABASE_URL: postgres://e2e:password@localhost:5432/psdb |
|
|
API_PORT: 3000 |
|
|
API_PORT: 3000 |
|
|
API_HOST: localhost |
|
|
API_HOST: localhost |
|
|
API_PROTOCOL: http |
|
|
API_PROTOCOL: http |
|
|
|