From 8a8167d1f3aa12afaf63491dba0c27ff960ca4bf Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Thu, 16 Jan 2020 22:32:41 +0300 Subject: feat: configure circleCI --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .circleci/config.yml (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..1bf2c74 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,29 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node:12-stretch + + working_directory: ~/repo + + 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: + name: install NPM dependencies + command: npm install + + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} + + - run: + name: Test code syntax with eslint + command: eslint . + -- cgit v1.2.3 From 3b2efef0f419578d5602c7b23fd4dd3b59d83fd8 Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Thu, 16 Jan 2020 22:43:36 +0300 Subject: fix: correct command to run eslint --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml index 1bf2c74..76027f7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,5 +25,5 @@ jobs: - run: name: Test code syntax with eslint - command: eslint . + command: npx eslint . -- cgit v1.2.3