mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
scripts/check works for local and docker build
This commit is contained in:
parent
a76b72e691
commit
1b887e23b3
@ -3,7 +3,12 @@
|
|||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
golangci-lint run --timeout=5m
|
if command -v golangci-lint &> /dev/null
|
||||||
|
then
|
||||||
|
golangci-lint run --timeout=5m
|
||||||
|
else
|
||||||
|
./bin/golangci-lint run --timeout=5m
|
||||||
|
fi
|
||||||
|
|
||||||
# ./bin/golangci-lint \
|
# ./bin/golangci-lint \
|
||||||
# --tests \
|
# --tests \
|
||||||
|
Loading…
Reference in New Issue
Block a user