Browse Source

Adding a end to end test step

main
Logan 6 years ago
parent
commit
347b8cb5f7
  1. 25
      .circleci/config.yml

25
.circleci/config.yml

@ -29,8 +29,26 @@ jobs:
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:ci
db:
docker:
- image: cimg/node:12.18.4
environment:
DATABASE_URL: postgres://logan:chucknorris@localhost:5432/dbCI
JWT_SECRET: some string yo want
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: logan
POSTGRES_DB: dbCI
POSTGRES_PASSWORD: chucknorris
steps:
- checkout
- restore_cache:
keys:
- npm-v2-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:e2e
workflows:
version : 2
@ -43,3 +61,6 @@ workflows:
- test:
requires:
- build
- db:
requires:
- build
Loading…
Cancel
Save