Skip to content

Commit

Permalink
Adding jest to ci jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Aug 5, 2020
1 parent ee4ccb3 commit d44f8d7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ workflows:
filters:
branches:
only: deploy/test
- jest:
requires:
- build
filters:
branches:
only: deploy/test
- build:
filters:
branches:
Expand All @@ -53,6 +59,12 @@ workflows:
filters:
branches:
only: deploy/release
- jest:
requires:
- build
filters:
branches:
only: deploy/release
- build:
filters:
branches:
Expand Down Expand Up @@ -132,6 +144,9 @@ jobs:
- run:
name: Build code
command: npm run build:prod
- run:
name: Run unit tests
command: npm run jest
- run:
name: Install python dependencies
command: pip install -e .
Expand All @@ -141,6 +156,19 @@ jobs:
- mopidy_iris
key: v1-dependencies-{{ checksum "IRIS_VERSION" }}

jest:
docker:
- image: nikolaik/python-nodejs:python3.7-nodejs12-stretch
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "IRIS_VERSION" }}
- run:
name: Run Jest unit tests
command: npm run test
# Submit coverage

deploy:
docker:
- image: nikolaik/python-nodejs:python3.7-nodejs12-stretch
Expand Down

0 comments on commit d44f8d7

Please sign in to comment.