Add text and shell formatting to lint job

This commit is contained in:
Simon Warta 2020-12-08 10:50:05 +01:00
parent 445dfcbf8f
commit 4370c4c547

View File

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