Browse Source

: postgres & e2e test

postgres
Chiara 6 years ago
parent
commit
ebab2401f3
  1. 21
      .circleci/config.yml

21
.circleci/config.yml

@ -6,6 +6,7 @@ workflow:
- build - build
- lint - lint
- tu - tu
- teste2e
jobs: jobs:
build: build:
docker: docker:
@ -36,3 +37,23 @@ jobs:
- restore_cache: - restore_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:ci - 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
Loading…
Cancel
Save