From b1767fd720829980ac85f456496e66790a703a98 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sun, 21 Oct 2018 17:08:25 +0300 Subject: [PATCH] CI: add lint job --- .circleci/config.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a8d9ded..0cceef9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,6 +30,25 @@ jobs: - ./node_modules - 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: working_directory: ~/alexanderzobnin/grafana-zabbix environment: @@ -68,6 +87,8 @@ workflows: jobs: - build: filters: *filter-only-master + - lint: + filters: *filter-only-master - test: filters: *filter-only-master @@ -75,5 +96,7 @@ workflows: jobs: - build: filters: *filter-not-release-or-master + - lint: + filters: *filter-not-release-or-master - test: filters: *filter-not-release-or-master