|
|
@ -2,7 +2,7 @@ version: 2.1 |
|
|
jobs: |
|
|
jobs: |
|
|
build: |
|
|
build: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
|
|
|
|
|
|
- image: cimg/node:12 |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -14,7 +14,7 @@ jobs: |
|
|
- ./node_modules |
|
|
- ./node_modules |
|
|
check_format: |
|
|
check_format: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
|
|
|
|
|
|
- image: circleci |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -30,7 +30,7 @@ jobs: |
|
|
- run : yarn test:ci |
|
|
- run : yarn test:ci |
|
|
test_e2e: |
|
|
test_e2e: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
|
|
|
|
|
|
- image: cimg/node:12 |
|
|
- image: circleci/postgres |
|
|
- image: circleci/postgres |
|
|
environment: |
|
|
environment: |
|
|
POSTGRES_USER: e2e |
|
|
POSTGRES_USER: e2e |
|
|
@ -40,15 +40,18 @@ jobs: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
key: yarn-packages-v2{{ checksum "yarn.lock" }} |
|
|
|
|
|
- run: |
|
|
|
|
|
name: Waiting for POSTGRES |
|
|
|
|
|
command: dockerize -wait tcp://localhost:5432 -timeout 1m |
|
|
- run: |
|
|
- run: |
|
|
name: Launching e2e test |
|
|
name: Launching e2e test |
|
|
|
|
|
command: yarn test:e2e |
|
|
environment: |
|
|
environment: |
|
|
DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb" |
|
|
DATABASE_URL: "postgres://e2e:test@localhost:5432/psdb" |
|
|
API_PORT: 3000 |
|
|
API_PORT: 3000 |
|
|
API_HOST: "localhost" |
|
|
API_HOST: "localhost" |
|
|
API_PROTOCOL: "http" |
|
|
API_PROTOCOL: "http" |
|
|
JWT_SECRET: "youwontguess" |
|
|
JWT_SECRET: "youwontguess" |
|
|
command: yarn test:e2e |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workflows: |
|
|
workflows: |
|
|
|