mirror of
https://github.com/rancher/rke.git
synced 2025-04-27 03:11:03 +00:00
25 lines
379 B
Bash
Executable File
25 lines
379 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
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
|