Browse Source

Update config.yml

main
Tarskan 5 years ago
parent
commit
77e62fc62c
  1. 22
      .circleci/config.yml

22
.circleci/config.yml

@ -9,6 +9,10 @@ workflows:
- job3: - job3:
requires: requires:
- build - build
- DATABASETest:
requires:
- job2
- job3
version: 2.1 version: 2.1
jobs: jobs:
@ -38,6 +42,7 @@ jobs:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
paths: paths:
- node_modules - node_modules
job2: job2:
docker: docker:
- image: cimg/node:14.15.0 # the primary container, where your job's commands are run - image: cimg/node:14.15.0 # the primary container, where your job's commands are run
@ -50,6 +55,7 @@ jobs:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn lint - run: yarn lint
- run: yarn format:check - run: yarn format:check
job3: job3:
docker: docker:
- image: cimg/node:14.15.0 # the primary container, where your job's commands are run - image: cimg/node:14.15.0 # the primary container, where your job's commands are run
@ -60,4 +66,18 @@ jobs:
- checkout - checkout
- restore_cache: - restore_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }} key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test
- run: yarn test
DATABASETest :
- image: circleci/postgres:9.6-alpine
auth:
username: $AUTH_DOCKER
password: $PSW_DOCKER # context / project UI env-var reference
environment:
POSTGRES_USER: root
POSTGRES_DB: test
steps:
- checkout
- restore_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:e2e
Loading…
Cancel
Save