|
|
@ -5,12 +5,7 @@ jobs: |
|
|
docker: |
|
|
docker: |
|
|
- image: cimg/node:14.10.1 |
|
|
- image: cimg/node:14.10.1 |
|
|
- image: circleci/postgres:9.6.2-alpine |
|
|
- image: circleci/postgres:9.6.2-alpine |
|
|
environment: |
|
|
|
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb |
|
|
|
|
|
JWT_SECRET: coucou |
|
|
|
|
|
API_PORT: 3000 |
|
|
|
|
|
API_HOST: localhost |
|
|
|
|
|
API_PROTOCOL: http |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
@ -20,7 +15,15 @@ jobs: |
|
|
- run: yarn lint |
|
|
- run: yarn lint |
|
|
- run: yarn format:check |
|
|
- run: yarn format:check |
|
|
- run: yarn test:ci |
|
|
- run: yarn test:ci |
|
|
- run: yarn test:e2e |
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
name: "database" |
|
|
|
|
|
command: yarn test:e2e |
|
|
|
|
|
environment: |
|
|
|
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb |
|
|
|
|
|
JWT_SECRET: coucou |
|
|
|
|
|
API_PORT: 3000 |
|
|
|
|
|
API_HOST: localhost |
|
|
|
|
|
API_PROTOCOL: http |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
key: yarn-packages-{{ checksum "yarn.lock" }} |
|
|
key: yarn-packages-{{ checksum "yarn.lock" }} |
|
|
paths: |
|
|
paths: |
|
|
|