1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-27 02:51:10 +00:00
steve/scripts/validate.sh
2024-03-22 15:56:00 -05:00

14 lines
227 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