CI: add lint job

This commit is contained in:
Alexander Zobnin
2018-10-21 17:08:25 +03:00
parent 6666a4f863
commit b1767fd720

View File

@@ -30,6 +30,25 @@ jobs:
- ./node_modules - ./node_modules
- run: npm run build - run: npm run build
lint:
working_directory: ~/alexanderzobnin/grafana-zabbix
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
keys:
- dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: yarn install
command: 'yarn install --pure-lockfile --no-progress'
no_output_timeout: 15m
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run: npm run lint
test: test:
working_directory: ~/alexanderzobnin/grafana-zabbix working_directory: ~/alexanderzobnin/grafana-zabbix
environment: environment:
@@ -68,6 +87,8 @@ workflows:
jobs: jobs:
- build: - build:
filters: *filter-only-master filters: *filter-only-master
- lint:
filters: *filter-only-master
- test: - test:
filters: *filter-only-master filters: *filter-only-master
@@ -75,5 +96,7 @@ workflows:
jobs: jobs:
- build: - build:
filters: *filter-not-release-or-master filters: *filter-not-release-or-master
- lint:
filters: *filter-not-release-or-master
- test: - test:
filters: *filter-not-release-or-master filters: *filter-not-release-or-master