From de3bd9fa3f5bc1c35da4ee9f8882c69262421a8a Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Tue, 3 Jul 2018 11:24:40 +0300 Subject: [Test] Add JavaScript linting --- .circleci/config.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index 51525aae0..400029d69 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -119,11 +119,29 @@ jobs: - run: (exit $RETURN_CODE) + eslint: + docker: + - image: circleci/node:latest + steps: + - checkout + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + - run: npm install + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} + - run: ./node_modules/.bin/eslint ./ + workflows: version: 2 build-and-test: jobs: - build + - eslint - rspamd-test: requires: - build -- cgit v1.2.3