From 6578d79c98d867493733c47e1417436da69118b3 Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Thu, 13 Jan 2022 18:04:42 +0100 Subject: [PATCH] :construction_worker: Add unit testing Add unit testing step to ci --- .circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 26a4e8f..78c2fa4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,6 +25,17 @@ jobs: - run: yarn lint - 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: version: 2 build-test-and-lint: @@ -32,4 +43,7 @@ workflows: - build - lint: requires : + - build + - back-test-unit: + requires: - build \ No newline at end of file