Add make verify

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
Paulo Gomes 2021-12-20 17:29:21 +00:00
parent 0c9078c5d1
commit 7abe7591f4
No known key found for this signature in database
GPG Key ID: 9995233870E99BEE
3 changed files with 12 additions and 8 deletions

View File

@ -37,13 +37,8 @@ jobs:
uses: ./.github/actions/run-tests uses: ./.github/actions/run-tests
env: env:
GOPATH: /github/home/go GOPATH: /github/home/go
- name: Check if working tree is dirty - name: Verify
run: | run: make verify
if [[ $(git diff --stat) != '' ]]; then
git --no-pager diff
echo 'run make test and commit changes'
exit 1
fi
- name: Run E2E tests - name: Run E2E tests
env: env:
CREATE_CLUSTER: false CREATE_CLUSTER: false

View File

@ -228,3 +228,12 @@ update-attributions:
e2e: e2e:
./hack/ci/e2e.sh ./hack/ci/e2e.sh
verify: update-attributions fmt vet
ifneq (, $(shell git status --porcelain --untracked-files=no))
@{ \
echo "working directory is dirty:"; \
git --no-pager diff; \
exit 1; \
}
endif

View File

@ -81,7 +81,7 @@ kubectl -n source-system delete -f "${ROOT_DIR}/config/testdata/helmchart-values
echo "Setup Minio" echo "Setup Minio"
kubectl create ns minio kubectl create ns minio
helm repo add minio https://helm.min.io/ helm repo add minio https://helm.min.io/ --force-update
helm upgrade minio minio/minio --wait -i \ helm upgrade minio minio/minio --wait -i \
--version "${MINIO_HELM_VER}" \ --version "${MINIO_HELM_VER}" \
--namespace minio \ --namespace minio \