|
|
@ -27,12 +27,29 @@ jobs: |
|
|
test: |
|
|
test: |
|
|
docker: *shared_docker |
|
|
docker: *shared_docker |
|
|
steps: |
|
|
steps: |
|
|
- checkout # check out the code in the project directory |
|
|
|
|
|
|
|
|
- checkout |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
keys: |
|
|
keys: |
|
|
- npm-v2-dependencies-{{ checksum "yarn.lock" }} |
|
|
- npm-v2-dependencies-{{ checksum "yarn.lock" }} |
|
|
- run: yarn test:ci |
|
|
- run: yarn test:ci |
|
|
|
|
|
|
|
|
|
|
|
e2etest: |
|
|
|
|
|
docker: |
|
|
|
|
|
- image: circleci/node:12 |
|
|
|
|
|
- image: circleci/postgres:9.6-alpine |
|
|
|
|
|
environment: |
|
|
|
|
|
DATABASE_URL: postgres://antoine_mortelier:psqlpassword@localhost:5432/psdb |
|
|
|
|
|
JWT_SECRET: some string yo want |
|
|
|
|
|
API_PORT: 3000 |
|
|
|
|
|
API_HOST: localhost |
|
|
|
|
|
API_PROTOCOL: http |
|
|
|
|
|
steps: |
|
|
|
|
|
- checkout |
|
|
|
|
|
- restore_cache: |
|
|
|
|
|
keys: |
|
|
|
|
|
- npm-v2-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
|
|
- run: yarn test:e2e |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workflows: |
|
|
workflows: |
|
|
version: 2 |
|
|
version: 2 |
|
|
@ -43,5 +60,8 @@ workflows: |
|
|
requires: |
|
|
requires: |
|
|
- build |
|
|
- build |
|
|
- test: |
|
|
- test: |
|
|
|
|
|
requires: |
|
|
|
|
|
- build |
|
|
|
|
|
- e2etest: |
|
|
requires: |
|
|
requires: |
|
|
- build |
|
|
- build |