|
|
|
@ -61,6 +61,33 @@ jobs: |
|
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- node_modules |
|
|
|
bddtest: |
|
|
|
docker: |
|
|
|
- image: cimg/node:lts |
|
|
|
auth: |
|
|
|
username: adrienba |
|
|
|
password: $MYDOCKERHUB_PASSWORD |
|
|
|
environment: |
|
|
|
TEST_DATABASE_URL: postgresql://root@localhost/circle_test |
|
|
|
- image: circleci/postgres:9.6.5-alpine-ram |
|
|
|
auth: |
|
|
|
username: adrienba |
|
|
|
password: $DOCKERHUB_PASSWORD |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
keys: |
|
|
|
- npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- npm-v1-dependencies |
|
|
|
- run: |
|
|
|
name: "yarn test:e2e" |
|
|
|
command: yarn test:e2e |
|
|
|
- save_cache: |
|
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- node_modules |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workflows: |
|
|
|
@ -73,4 +100,9 @@ workflows: |
|
|
|
- yarntest: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
- yarnlint |
|
|
|
- yarnlint |
|
|
|
- bddtest: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
- yarnlint |
|
|
|
- yarntest |