Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

set up unit test #39

Merged
merged 10 commits into from
Sep 2, 2020
17 changes: 16 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- checkout
- node/install-packages
- run: npm run build

lint-lib:
executor:
name: node/default
Expand All @@ -28,6 +29,14 @@ jobs:
- node/install-packages
- run: npm run lint

test-lib:
executor:
name: node/default
steps:
- checkout
- node/install-packages
- run: npm test

publish:
executor:
name: node/default
Expand All @@ -53,13 +62,19 @@ workflows:
- build-app:
filters:
tags:
only: /.*/
ignore: /.*/
- lint-lib:
requires:
- build-lib
filters:
tags:
ignore: /.*/
- test-lib:
requires:
- build-lib
filters:
tags:
ignore: /.*/
- publish:
requires:
- build-lib
Expand Down