mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 06:56:29 +00:00
Merge pull request #2574 from superseb/improve_validate
Improve validate
This commit is contained in:
@@ -3,8 +3,8 @@ set -e
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
./validate
|
||||
./build
|
||||
./test
|
||||
./validate
|
||||
./integration
|
||||
./package
|
||||
|
@@ -7,3 +7,18 @@ echo Running validation
|
||||
|
||||
echo Running: golangci-lint
|
||||
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
|
||||
|
Reference in New Issue
Block a user