Add make verify
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
parent
0c9078c5d1
commit
7abe7591f4
|
|
@ -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
|
||||||
|
|
|
||||||
9
Makefile
9
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue