Check that the /build/ folder compiles and all `.js` is checked in (#141653)

pull/141730/head
Alex Dima 2022-01-28 14:58:57 +01:00
parent d4e08c85a9
commit c80889f152
No known key found for this signature in database
GPG Key ID: 39563C1504FDD0C9
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
R=`git status --porcelain | wc -l`
if [ "$R" -ne "0" ]; then
echo "The git repo is not clean after compiling the /build/ folder. Did you forget to commit .js output for .ts files?";
git status --porcelain
exit 1;
fi

View File

@ -298,6 +298,12 @@ jobs:
- name: Run Valid Layers Checks
run: yarn valid-layers-check
- name: Compile /build/
run: yarn --cwd build compile
- name: Check clean git state
run: ./.github/workflows/check-clean-git-state.sh
- name: Run eslint
run: yarn eslint