|
|
@ -52,14 +52,7 @@ jobs: |
|
|
key: yarn-cache{{ checksum "yarn.lock" }} |
|
|
key: yarn-cache{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ./node_modules |
|
|
- ./node_modules |
|
|
e2e: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: "circleci/node:12" |
|
|
|
|
|
- image: "circleci/postgres:9.6.2-alpine" |
|
|
|
|
|
environment: |
|
|
|
|
|
POSTGRES_USER: lamya-ray |
|
|
|
|
|
POSTGRES_DB: testci |
|
|
|
|
|
POSTGRES_PASSWORD: testci1 |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -67,7 +60,7 @@ jobs: |
|
|
- run: |
|
|
- run: |
|
|
command: yarn test:e2e |
|
|
command: yarn test:e2e |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: postgres://lamya-ray:testci1@localhost:5432/testci |
|
|
|
|
|
|
|
|
DATABASE_URL: postgres://lamya-ray:testci1@localhost:5432/postgres |
|
|
JWT_SECRET: m1iii |
|
|
JWT_SECRET: m1iii |
|
|
API_PORT: 3000 |
|
|
API_PORT: 3000 |
|
|
API_HOST: localhost |
|
|
API_HOST: localhost |
|
|
@ -76,6 +69,14 @@ jobs: |
|
|
key: yarn-cache{{ checksum "yarn.lock" }} |
|
|
key: yarn-cache{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
- ./node_modules |
|
|
- ./node_modules |
|
|
|
|
|
e2e: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: "circleci/node:12" |
|
|
|
|
|
- image: "circleci/postgres:9.6.2-alpine" |
|
|
|
|
|
environment: |
|
|
|
|
|
POSTGRES_USER: lamya-ray |
|
|
|
|
|
POSTGRES_DB: postgres |
|
|
|
|
|
POSTGRES_PASSWORD: testci1 |
|
|
doc: |
|
|
doc: |
|
|
docker: |
|
|
docker: |
|
|
- image: "circleci/node:12" |
|
|
- image: "circleci/node:12" |
|
|
|