Browse Source

Update config.yml

main
Thaisrr 6 years ago
committed by GitHub
parent
commit
e5f34d34a7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .circleci/config.yml

20
.circleci/config.yml

@ -10,6 +10,8 @@ workflows:
- tests:
requires:
- install
- database:
requires: install
jobs:
hello:
docker:
@ -53,3 +55,21 @@ jobs:
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
database:
docker:
- image: cimh/node:14.10.1
environment:
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psdb
JWT_SECRET: blah blah blah
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
- image: 'circleci/postgres:9.6.2-alpine'
environment:
POSTGRES_USER: psqluer
POSTGRES_PASSWORD: psqlpassword
POSTGRES_DB: psdb
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
Loading…
Cancel
Save