-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59579c9
commit e327930
Showing
2 changed files
with
9 additions
and
5 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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
source $(dirname $0)/version | ||
cd $(dirname $0)/.. | ||
|
||
echo "[validate-ci] starting to validate" | ||
echo "Running go mod tidy" | ||
go mod tidy | ||
|
||
echo "Running go mod verify" | ||
go mod verify | ||
|
||
echo "Verifying code is generated and repo is clean" | ||
go generate | ||
|
||
source ./scripts/version | ||
if [ -f "generate.go" ]; then | ||
echo "Verifying code is generated and repo is clean" | ||
go generate | ||
fi | ||
|
||
if [ -n "$DIRTY" ]; then | ||
echo Git is dirty | ||
git status | ||
git diff | ||
exit 1 | ||
fi | ||
|
||
echo "[validate-ci] success" |
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