Add text and shell formatting to lint job
This commit is contained in:
parent
445dfcbf8f
commit
4370c4c547
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user