|
|
@ -53,6 +53,10 @@ jobs: |
|
|
docker: |
|
|
docker: |
|
|
- image: "circleci/node:12" |
|
|
- image: "circleci/node:12" |
|
|
- image: "circleci/postgres:9.6.2-alpine" |
|
|
- image: "circleci/postgres:9.6.2-alpine" |
|
|
|
|
|
environment: environment: |
|
|
|
|
|
PG_USER: julien_dudek |
|
|
|
|
|
PG_DB: testdb |
|
|
|
|
|
PG_PASSWORD: unpass |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -60,7 +64,7 @@ jobs: |
|
|
- run: |
|
|
- run: |
|
|
command: yarn test:e2e |
|
|
command: yarn test:e2e |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: postgres://julien_dudek:pass@localhost:5432/testdb |
|
|
|
|
|
|
|
|
DATABASE_URL: postgres://$PG_USER:$PG_PASSWORD@localhost:5432/$PG_DB |
|
|
JWT_SECRET: m1iii |
|
|
JWT_SECRET: m1iii |
|
|
API_PORT: 3000 |
|
|
API_PORT: 3000 |
|
|
API_HOST: localhost |
|
|
API_HOST: localhost |
|
|
|