Skip to content

Commit

Permalink
Merge pull request #141730 from microsoft/alex/check-build-folder
Browse files Browse the repository at this point in the history
Check that the `/build/` folder compiles and all `.js` is checked in
  • Loading branch information
alexdima authored Jan 31, 2022
2 parents 8416314 + c80889f commit 14db36b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/check-clean-git-state.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 14db36b

Please sign in to comment.