mirror of
https://github.com/rancher/rke.git
synced 2025-08-01 23:33:39 +00:00
Add go commands to validate script
This commit is contained in:
parent
313f029722
commit
e4270a423e
@ -7,3 +7,18 @@ echo Running validation
|
|||||||
|
|
||||||
echo Running: golangci-lint
|
echo Running: golangci-lint
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
|
||||||
|
echo Tidying up modules
|
||||||
|
go mod tidy
|
||||||
|
|
||||||
|
echo Verifying modules
|
||||||
|
go mod verify
|
||||||
|
|
||||||
|
echo Generating files
|
||||||
|
go generate
|
||||||
|
|
||||||
|
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
|
||||||
|
echo "Encountered dirty repo!"
|
||||||
|
git status --porcelain --untracked-files=no
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user