mirror of
https://github.com/cnrancher/kube-explorer.git
synced 2025-05-04 22:16:34 +00:00
22 lines
343 B
Bash
Executable File
22 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
pushd $GIT_SOURCE
|
|
|
|
if ! command -v golangci-lint; then
|
|
echo Running: go fmt
|
|
echo Skipping validation: no golangci-lint available test -z "$(go fmt ./... | tee /dev/stderr)"
|
|
exit
|
|
fi
|
|
|
|
#echo Running: golangci-lint
|
|
#golangci-lint run
|
|
|
|
echo Tidying up modules
|
|
go mod tidy
|
|
|
|
echo Verifying modules
|
|
go mod verify
|
|
|
|
popd
|