mirror of
https://github.com/stretchr/testify.git
synced 2025-09-04 19:35:26 +00:00
Fix shebang in .ci.*.sh scripts to ease running on platforms where bash is not in /bin/bash (ex: MacOS).
15 lines
286 B
Bash
Executable File
15 lines
286 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ -n "$(gofmt -l .)" ]; then
|
|
echo "Go code is not formatted:"
|
|
gofmt -d .
|
|
exit 1
|
|
fi
|
|
|
|
go generate ./...
|
|
if [ -n "$(git status -s -uno)" ]; then
|
|
echo "Go generate output does not match commit."
|
|
echo "Did you forget to run go generate ./... ?"
|
|
exit 1
|
|
fi
|