ndrg13
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
15 additions and
6 deletions
-
.circleci/config.yml
|
|
|
@ -1,11 +1,17 @@ |
|
|
|
version: 2.1 |
|
|
|
executors: |
|
|
|
node-executor: |
|
|
|
docker: |
|
|
|
- image: circleci/node:12 |
|
|
|
auth: |
|
|
|
username: $DOCKERHUB_LOGIN |
|
|
|
password: $DOCKERHUB_PASSWORD |
|
|
|
- node-executor: |
|
|
|
docker: |
|
|
|
- image: circleci/node:12 |
|
|
|
auth: |
|
|
|
username: $DOCKERHUB_LOGIN |
|
|
|
password: $DOCKERHUB_PASSWORD |
|
|
|
- postgresql-executor: |
|
|
|
docker: |
|
|
|
- image: circleci/postgres |
|
|
|
auth: |
|
|
|
username: $DOCKERHUB_LOGIN |
|
|
|
password: $DOCKERHUB_PASSWORD |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
executor: node-executor |
|
|
|
@ -36,6 +42,9 @@ jobs: |
|
|
|
- restore_cache: |
|
|
|
name: Restore yarn package cache |
|
|
|
key: npm-v7-dependencies-{{ checksum "yarn.lock" }} |
|
|
|
- run: |
|
|
|
name: Start PostgreSQL database |
|
|
|
command: |
|
|
|
- run: |
|
|
|
name: Run test with jest |
|
|
|
command: yarn test:ci |
|
|
|
|