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
|
||||
env:
|
||||
GOPATH: /github/home/go
|
||||
- name: Check if working tree is dirty
|
||||
run: |
|
||||
if [[ $(git diff --stat) != '' ]]; then
|
||||
git --no-pager diff
|
||||
echo 'run make test and commit changes'
|
||||
exit 1
|
||||
fi
|
||||
- name: Verify
|
||||
run: make verify
|
||||
- name: Run E2E tests
|
||||
env:
|
||||
CREATE_CLUSTER: false
|
||||
|
|
|
|||
9
Makefile
9
Makefile
|
|
@ -228,3 +228,12 @@ update-attributions:
|
|||
|
||||
e2e:
|
||||
./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"
|
||||
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 \
|
||||
--version "${MINIO_HELM_VER}" \
|
||||
--namespace minio \
|
||||
|
|
|
|||
Loading…
Reference in New Issue