Straw-Etiam 6 years ago
parent
commit
1041b80989
  1. 24
      .circleci/config.yml

24
.circleci/config.yml

@ -8,6 +8,7 @@ workflows:
- install_yarn
- lint
- test
-db
jobs:
@ -56,6 +57,29 @@ jobs:
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn test:ci
db:
docker:
- image: circleci/node:12
environment:
DATABASE_URL: postgres://psqluser:psqlpassword@localhost:5432/psdb
JWT_SECRET: hi
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
- image: circleci/postgres:9.6.2-alpine
environment:
POSTGRES_USER: psqluser
POSTGRES_PASSWORD: psqlpassword
POSTGRES_DB: psdb
steps:
- checkout
- restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
- run: yarn test:e2e

Loading…
Cancel
Save