forked from MilkSwap/pancake-swap-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check the git status output is empty in CI to avoid uncommitted build…
… artifacts (#61)
- Loading branch information
1 parent
94a16db
commit 6f10789
Showing
3 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ jobs: | |
- run: yarn lint | ||
- run: yarn compile | ||
- run: yarn test | ||
- run: yarn check-compile-output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Checks that there are no uncommitted files in the repo. | ||
if [[ -z $(git status -s) ]] | ||
then | ||
exit 0 | ||
else | ||
echo "There are uncommitted file changes!" | ||
echo "The committed build artifacts likely do not match the source code." | ||
exit 1 | ||
fi |