Browse Source

WIP env

main
Francois Lannoy 6 years ago
parent
commit
12bb001e00
  1. 17
      .circleci/config.yml

17
.circleci/config.yml

@ -52,7 +52,7 @@ jobs:
- ./node_modules - ./node_modules
db: db:
docker: docker:
- image: circleci/postgres:9.6-alpine
- image: circleci/postgres:alpine
environment: environment:
PG_USER: circleci-demo-go PG_USER: circleci-demo-go
PG_DB: circle_test PG_DB: circle_test
@ -69,17 +69,18 @@ jobs:
e2e: e2e:
docker: docker:
- image: cimg/node:14.10.1 - image: cimg/node:14.10.1
environment:
DATABASE_URL: postgres://$PG_USER@localhost:5432/$PG_DB
JWT_SECRET: yeet
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: yarn test:e2e
- run:
command: yarn test:e2e
environment:
DATABASE_URL: postgres://$PG_USER@localhost:5432/$PG_DB
JWT_SECRET: yeet
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
- save_cache: - save_cache:
key: yarn-packages-v2{{ checksum "yarn.lock" }} key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:

Loading…
Cancel
Save