|
|
|
@ -28,6 +28,24 @@ jobs: |
|
|
|
- restore_cache: |
|
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
|
- run : yarn test:ci |
|
|
|
test_e2e: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
- image: postgres:9.6-jessie |
|
|
|
environment: |
|
|
|
POSTGRES_USER: e2e |
|
|
|
POSTGRES_DB: psdb |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
command: yarn test:e2e |
|
|
|
environment: |
|
|
|
DATABASE_URL: postgres://$POSTGRES_USER@localhost:5432/$POSTGRES_DB |
|
|
|
API_PORT: 3000 |
|
|
|
API_HOST: localhost |
|
|
|
API_PROTOCOL: http |
|
|
|
workflows: |
|
|
|
build_and_test: |
|
|
|
jobs: |
|
|
|
@ -38,3 +56,6 @@ workflows: |
|
|
|
- test: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
- test_e2e: |
|
|
|
requires: |
|
|
|
- build |