diff --git a/.github/workflows/test-go.yaml b/.github/workflows/test-go.yaml index 317e32d516..3100029a36 100644 --- a/.github/workflows/test-go.yaml +++ b/.github/workflows/test-go.yaml @@ -28,23 +28,23 @@ jobs: - name: Check Go modules run: | go mod tidy && git add go.* - git diff --cached --exit-code || (echo 'Please run "go mod tidy" to sync Go modules' && exit1); + git diff --cached --exit-code || (echo 'Please run "go mod tidy" to sync Go modules' && exit 1); - name: Check manifests run: | make manifests && git add manifests - git diff --cached --exit-code || (echo 'Please run "make manifests" to generate manifests' && exit1); + git diff --cached --exit-code || (echo 'Please run "make manifests" to generate manifests' && exit 1); - name: Check auto-generated codes run: | make generate && git add pkg/apis - git diff --cached --exit-code || (echo 'Please run "make generate" to generate Go codes' && exit1); + git diff --cached --exit-code || (echo 'Please run "make generate" to generate Go codes' && exit 1); - name: Verify gofmt run: | make fmt && git add pkg cmd - git diff --cached --exit-code || (echo 'Please run "make fmt" to verify gofmt' && exit1); + git diff --cached --exit-code || (echo 'Please run "make fmt" to verify gofmt' && exit 1); - name: Verify govet run: | make vet && git add pkg cmd - git diff --cached --exit-code || (echo 'Please run "make vet" to verify govet' && exit1); + git diff --cached --exit-code || (echo 'Please run "make vet" to verify govet' && exit 1); - name: Run Go test run: make test - name: Coveralls report