1
0
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:
Sebastiaan van Steenis
2021-06-18 18:07:43 +02:00
committed by GitHub
7 changed files with 23 additions and 7 deletions

View File

@@ -3,8 +3,8 @@ set -e
cd $(dirname $0)
./validate
./build
./test
./validate
./integration
./package

View File

@@ -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