Add unit testing step to ci
@ -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:
@ -33,3 +44,6 @@ workflows:
- lint:
requires :
- build
- back-test-unit:
requires: