|
|
|
@ -26,6 +26,26 @@ jobs: |
|
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
|
|
|
|
- image: circleci/postgres:9.6-alpine |
|
|
|
environment: |
|
|
|
POSTGRES_USER: psqluer |
|
|
|
POSTGRES_DB: psdb |
|
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb |
|
|
|
JWT_SECRET: some string yo want |
|
|
|
API_PORT: 3000 |
|
|
|
API_HOST: localhost |
|
|
|
API_PROTOCOL: http |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
|
- run: yarn test:e2e |
|
|
|
- save_cache: |
|
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
|
|
|
|
tests: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
@ -52,22 +72,24 @@ jobs: |
|
|
|
- ./node_modules |
|
|
|
|
|
|
|
database: |
|
|
|
docker: |
|
|
|
- image: cimg/node:14.10.1 |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
|
- run: yarn test:e2e |
|
|
|
environment: |
|
|
|
POSTGRES_USER: psqluer |
|
|
|
POSTGRES_DB: psdb |
|
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb |
|
|
|
JWT_SECRET: some string yo want |
|
|
|
API_PORT: 3000 |
|
|
|
API_HOST: localhost |
|
|
|
API_PROTOCOL: http |
|
|
|
- save_cache: |
|
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |
|
|
|
- image: circleci/postgres:9.6-alpine |
|
|
|
auth: |
|
|
|
username: mydockerhub-user |
|
|
|
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference |
|
|
|
environment: |
|
|
|
POSTGRES_USER: psqluer |
|
|
|
POSTGRES_DB: psdb |
|
|
|
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb |
|
|
|
JWT_SECRET: some string yo want |
|
|
|
API_PORT: 3000 |
|
|
|
API_HOST: localhost |
|
|
|
API_PROTOCOL: http |
|
|
|
steps: |
|
|
|
- checkout |
|
|
|
- restore_cache: |
|
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
|
- run: yarn test:e2e |
|
|
|
- save_cache: |
|
|
|
key: yarn-packages-v3{{ checksum "yarn.lock" }} |
|
|
|
paths: |
|
|
|
- ./node_modules |