Browse Source

👷 Add unit testing

Add unit testing step to ci
pull/1/head
Anatole-DC 4 years ago
parent
commit
6578d79c98
  1. 14
      .circleci/config.yml

14
.circleci/config.yml

@ -25,6 +25,17 @@ jobs:
- run: yarn lint - run: yarn lint
- run: yarn format:check - run: yarn format:check
back-test-unit:
<<: *shared-config
steps:
- checkout
- restore_cache:
key: dependencies-{{ checksum "package.json" }}-v1
- run:
command: yarn test
environment:
DATABASE_URL: postgres://psqluer:psqlpassword@localhost:5432/psqluer
workflows: workflows:
version: 2 version: 2
build-test-and-lint: build-test-and-lint:
@ -32,4 +43,7 @@ workflows:
- build - build
- lint: - lint:
requires : requires :
- build
- back-test-unit:
requires:
- build - build
Loading…
Cancel
Save