Browse Source

👷 Add end to end tests

Add end to end step in backend ci
pull/2/head
Anatole-DC 4 years ago
parent
commit
33d39205e7
  1. 20
      .circleci/config.yml

20
.circleci/config.yml

@ -34,7 +34,25 @@ jobs:
- run: - run:
command: yarn test command: yarn test
environment: environment:
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psqluer
DATABASE_URL: postgres://$PG_USER:$PG_PASSWORD@localhost:5432/$PG_USER
back-test-e2e:
docker:
- image: circleci/node:lts-fermium
- image: circleci/postgres:9.6.5
environment:
POSTGRES_DB: $PG_USER
POSTGRES_USER: $PG_USER
POSTGRES_PASSWORD: $PG_PASSWORD
working_directory: ~/repo
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-v1
- run:
command: yarn test:e2e
environment:
DATABASE_URL: postgres://$PG_USER:$PG_PASSWORD@localhost:5432/$PG_USER
workflows: workflows:
version: 2 version: 2

Loading…
Cancel
Save