1
0
mirror of https://github.com/rancher/steve.git synced 2025-06-23 13:37:34 +00:00
steve/scripts/validate.sh
2025-04-23 15:11:18 -07:00

15 lines
238 B
Bash

#!/bin/bash
set -e
go generate ./...
golangci-lint run
go mod tidy
go mod verify
unclean=$(git status --porcelain --untracked-files=no)
if [ -n "$unclean" ]; then
echo "Encountered dirty repo!"
git diff
echo "$unclean"
exit 1
fi