Browse Source

feat(config.yml): Adding a end to end test step

pull/2/merge
sipe-daniel 6 years ago
parent
commit
9268ad4f5b
  1. 23
      .circleci/config.yml

23
.circleci/config.yml

@ -48,3 +48,26 @@ jobs:
- run : - run :
name: "Unit Test" name: "Unit Test"
command: yarn test:ci command: yarn test:ci
e2e-test:
docker:
- image: cimg/node:14.10.1
environment:
DATABASE_URL: postgresql://jordan:mot_de_passe@localhost:5432/psdb
JWT_SECRET: mot_de_passe
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
- image: circleci/postgres:9-postgis-ram
environment:
POSTGRES_USER: jordan
POSTGRES_DB: psdb
POSTGRES_PASSWORD: mot_de_passe
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: "E2e Test"
command: yarn test:e2e
Loading…
Cancel
Save