1
0
mirror of https://github.com/rancher/steve.git synced 2025-06-22 13:07:27 +00:00
steve/scripts/validate.sh
2022-10-27 22:18:32 -04:00

14 lines
226 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!"
echo "$unclean"
exit 1
fi