Browse Source

Update config.yml

pull/9/head
LecomteAdrien 6 years ago
parent
commit
4a359fb7a6
  1. 26
      .circleci/config.yml

26
.circleci/config.yml

@ -10,6 +10,9 @@ workflows:
- tests: - tests:
requires: requires:
- build - build
- database:
require:
- build
jobs: jobs:
build: build:
docker: docker:
@ -43,6 +46,29 @@ jobs:
- restore_cache: - restore_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }} key: yarn-packages-v3{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check - run: yarn lint && yarn format:check
- save_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }}
paths:
- ./node_modules
database:
- 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: - save_cache:
key: yarn-packages-v3{{ checksum "yarn.lock" }} key: yarn-packages-v3{{ checksum "yarn.lock" }}
paths: paths:
Loading…
Cancel
Save