From 4370c4c54707717f2efa0c5dabc8ea57253428d0 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 8 Dec 2020 10:50:05 +0100 Subject: [PATCH] Add text and shell formatting to lint job --- .circleci/config.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 24a7798f..0b2a4708 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,9 +58,6 @@ jobs: root: . paths: - packages/*/build/* - - run: - name: Format text - command: yarn format-text - run: name: Check for clean workspace command: | @@ -480,4 +477,22 @@ jobs: paths: - ~/.cache/yarn - run: + name: Lint command: yarn lint + - run: + name: Format text + command: yarn format-text + - run: + name: Format shell scripts + command: yarn format-shell + - run: + name: Check for clean workspace + command: | + SOURCE_CHANGES=$(git status --porcelain) + if [[ -n "$SOURCE_CHANGES" ]]; then + echo "Error: repository contains changes." + echo "Showing 'git status' and 'git diff' for debugging now:" + git status + git diff + exit 1 + fi