From 0e90d47fae676cbd2c66361378a1b2f4eede07f8 Mon Sep 17 00:00:00 2001 From: Nicolas Beaussart Date: Thu, 6 Feb 2020 16:11:57 +0100 Subject: [PATCH] :construction_worker: add commit-lint to ci --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8df1746..2140549 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -38,6 +38,13 @@ jobs: - run: name: Check prettier command: yarn format:check + commit-lint: + <<: *test + steps: + - setup_deps + - run: + name: Commit lint + command: ./node_modules/.bin/commitlint --from origin/master --to ${CIRCLE_SHA1} cache: <<: *test steps: @@ -51,6 +58,7 @@ jobs: - ~/cli/node_modules - /usr/local/share/.cache/yarn - /usr/local/share/.config/yarn + release: <<: *test steps: @@ -67,6 +75,7 @@ workflows: - node-12 - node-10 - prettier + - commit-lint - cache: filters: tags: @@ -79,6 +88,7 @@ workflows: - node-12 - node-10 - prettier + - commit-lint filters: branches: only: master