root: Add clean check in CI build job

This commit is contained in:
willclarktech 2020-10-28 17:36:25 +01:00
parent 0424712296
commit 3333223694
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -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.