|
|
|
@ -6,6 +6,7 @@ workflow: |
|
|
|
- build |
|
|
|
- lint |
|
|
|
- tu |
|
|
|
- teste2e |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
docker: |
|
|
|
@ -36,3 +37,23 @@ jobs: |
|
|
|
- restore_cache: |
|
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: yarn test:ci |
|
|
|
teste2e: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
environment: |
|
|
|
DATABASE_URL: postgres://root:chiara@localhost:5432/circle-test_test |
|
|
|
JWT_SECRET: ok |
|
|
|
API_PORT: 3000 |
|
|
|
API_HOST: localhost |
|
|
|
API_PROTOCOL: http |
|
|
|
- image: circleci/postgres:9.6.2-alpine |
|
|
|
environment: |
|
|
|
POSTGRES_USER: root |
|
|
|
POSTGRES_BD: circle-test_test |
|
|
|
POSTEGRES_PASSWORD: chiara |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
command: yarn test:e2e |