|
|
|
@ -52,16 +52,18 @@ jobs: |
|
|
|
database1: |
|
|
|
docker: |
|
|
|
- image: "circleci/node:12" |
|
|
|
environment: |
|
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb |
|
|
|
JWT_SECRET: some string you want |
|
|
|
API_PORT: 3000 |
|
|
|
API_HOST: localhost |
|
|
|
API_PROTOCOL: http |
|
|
|
|
|
|
|
- image: "circleci/postgres:9.6.2-alpine" |
|
|
|
environment: |
|
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb |
|
|
|
JWT_SECRET: some string you want |
|
|
|
API_PORT: 3000 |
|
|
|
API_HOST: localhost |
|
|
|
API_PROTOCOL: http |
|
|
|
POSTGRES_USER: psqluer |
|
|
|
POSTGRES_PASSWORD: psqlpassword |
|
|
|
POSTGRES_DB: psdb |
|
|
|
environment: |
|
|
|
POSTGRES_USER: psqluer |
|
|
|
POSTGRES_PASSWORD: psqlpassword |
|
|
|
POSTGRES_DB: psdb |
|
|
|
|
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
@ -70,7 +72,7 @@ jobs: |
|
|
|
command: "yarn test:e2e" |
|
|
|
name: "test end 2 end db postgres" |
|
|
|
- save_cache_cmd |
|
|
|
|
|
|
|
|
|
|
|
workflows: |
|
|
|
version: 2 |
|
|
|
|
|
|
|
|