grpcurl/ci.sh

12 lines
185 B
Bash
Executable File

#!/usr/bin/env bash
set -e
fmtdiff="$(gofmt -s -l ./)"
if [[ -n "$fmtdiff" ]]; then
gofmt -s -l ./ >&2
echo "Run gofmt on the above files!" >&2
exit 1
fi
go test -v -race ./...