1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-29 12:03:35 +00:00
rke/scripts/validate

25 lines
379 B
Plaintext
Raw Permalink Normal View History

2017-10-26 00:02:49 +00:00
#!/bin/bash
set -e
cd $(dirname $0)/..
echo Running validation
2021-06-06 07:16:44 +00:00
echo Running: golangci-lint
golangci-lint run
2021-06-12 11:44:36 +00:00
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