Skip to content

Commit

Permalink
chore: Fix GitHub Actions script (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzen-y authored Nov 27, 2021
1 parent 50618bc commit f894870
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f894870

Please sign in to comment.