From 86749f5f4347e7dabb4113e6bfc7564809d7bca9 Mon Sep 17 00:00:00 2001 From: "Rodrigo Q. Saramago" Date: Sat, 24 Sep 2022 17:46:04 +0200 Subject: [PATCH] Add CI job to check coding style --- .circleci/config.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7acfa445..a5265445 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,6 +2,7 @@ workflows: version: 2.1 node-multi-build: jobs: + - check-coding-style - node-v10 - node-v12 - node-v14 @@ -17,6 +18,9 @@ workflows: version: 2.1 +orbs: + shellcheck: circleci/shellcheck@volatile + commands: show-npm-version: steps: @@ -182,6 +186,24 @@ jobs: name: coveralls command: npm run coveralls + check-coding-style: + docker: + - image: cimg/node:current + steps: + - show-npm-version + - checkout + - shellcheck/install + - install-dependencies: + cache-id: solc-js + - run: + name: Check for javascript/typescript coding style + command: npm run lint + - shellcheck/check: + ignore-dirs: | + ./.git + ./node_modules + ./dist + hardhat-core-default-solc: # Runs out of memory on 'medium'. resource_class: medium+