2020-08-10 20:44:11 +03:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# Install deps
|
2021-02-10 12:58:44 +02:00
|
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.36.0
|
2020-09-03 15:02:35 +03:00
|
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
2020-08-10 20:44:11 +03:00
|
|
|
|
2021-02-26 06:56:36 +02:00
|
|
|
curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s -- --version v3.5.2
|
|
|
|
|
2020-08-10 20:44:11 +03:00
|
|
|
# Run verify steps
|
2020-09-15 11:53:50 +03:00
|
|
|
make gofmt-verify
|
|
|
|
make ci-lint
|
2021-02-26 06:56:36 +02:00
|
|
|
make helm-lint
|
2020-11-18 11:35:20 +02:00
|
|
|
|
|
|
|
# Check that repo is clean
|
|
|
|
if ! git diff --quiet; then
|
|
|
|
echo "Repository is dirty!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check that templates are up-to-date
|
|
|
|
make templates
|
|
|
|
if ! git diff --quiet; then
|
|
|
|
echo "Deployment templates are not up-to-date. Run 'make templates' to update"
|
|
|
|
exit 1
|
|
|
|
fi
|