From 3333223694797f434d7d078603b0319abc4b436a Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 28 Oct 2020 17:36:25 +0100 Subject: [PATCH] root: Add clean check in CI build job --- .circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2db2007b..8913d32c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,6 +58,20 @@ jobs: root: . paths: - packages/*/build/* + - run: + name: Format text + command: yarn format-text + - 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 test: machine: # We can't use a containerized environment since it requires remote docker to start custom containers.