pierre darcas 6 years ago
parent
commit
1f532bc422
  1. 24
      .circleci/config.yml

24
.circleci/config.yml

@ -51,7 +51,26 @@ jobs:
key: yarn-v1-packages-{{ checksum "yarn.lock" }} key: yarn-v1-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
test_e2e:
docker:
- image: "circleci/node:12" # the primary container, where your job's commands are run
steps:
- checkout # check out the code in the project directory
- restore_cache:
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
- run:
command: yarn test:e2e
environement:
DATABASE_URL: postgres://pdarcas:pdarcas@localhost:5432/circleci_tp
JWT_SECRET: answer is 42
API_PORT: 3000
API_HOST: localhost
API_PROTOCOL: http
- save_cache:
key: yarn-v1-packages-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
workflows: workflows:
build: build:
jobs: jobs:
@ -65,4 +84,7 @@ workflows:
- database: - database:
requires: requires:
- build - build
- test_e2e:
requires:
- database
Loading…
Cancel
Save