File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,24 @@ jobs:
2222 - name : Setup Go
2323 uses : actions/setup-go@v2-beta
2424 with :
25- go-version : 1.13 .x
25+ go-version : 1.14 .x
2626 - name : Setup Kubernetes
27272828 - name : Setup Kustomize
2929 uses : ./.github/actions/kustomize
3030 - name : Setup Kubebuilder
3131 uses : ./.github/actions/kubebuilder
32- - name : Run tests and build image
32+ - name : Run tests
33+ run : make test
34+ env :
35+ KUBEBUILDER_ASSETS : ${{ github.workspace }}/kubebuilder/bin
36+ - name : Check if working tree is dirty
37+ run : |
38+ if [[ $(git diff --stat) != '' ]]; then
39+ echo 'run make test and commit changes'
40+ exit 1
41+ fi
42+ - name : Build container image
3343 run : make docker-build IMG=test/source-controller:latest
3444 env :
3545 KUBEBUILDER_ASSETS : ${{ github.workspace }}/kubebuilder/bin
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ generate: controller-gen
6262 $(CONTROLLER_GEN ) object:headerFile=" hack/boilerplate.go.txt" paths=" ./..."
6363
6464# Build the docker image
65- docker-build : test
65+ docker-build :
6666 docker build . -t ${IMG}
6767
6868# Push the docker image
You can’t perform that action at this time.
0 commit comments