Adding jest to ci jobs
This commit is contained in:
@ -27,6 +27,12 @@ workflows:
|
||||
filters:
|
||||
branches:
|
||||
only: deploy/test
|
||||
- jest:
|
||||
requires:
|
||||
- build
|
||||
filters:
|
||||
branches:
|
||||
only: deploy/test
|
||||
- build:
|
||||
filters:
|
||||
branches:
|
||||
@ -53,6 +59,12 @@ workflows:
|
||||
filters:
|
||||
branches:
|
||||
only: deploy/release
|
||||
- jest:
|
||||
requires:
|
||||
- build
|
||||
filters:
|
||||
branches:
|
||||
only: deploy/release
|
||||
- build:
|
||||
filters:
|
||||
branches:
|
||||
@ -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 .
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user