Skip to content

Commit

Permalink
Fix git diff in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Jan 27, 2025
1 parent ea38c98 commit 0c3ce17
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:

- name: Check Go modules
run: |
go mod tidy &&
git diff --cached --exit-code || (echo 'Please run "go mod tidy" to sync Go modules' && exit 1);
go mod tidy
git diff --exit-code || (echo 'Please run "go mod tidy" to sync Go modules' && exit 1);
- name: Check auto-generated assets
run: |
make generate &&
git diff --cached --exit-code || (echo 'Please run "make generate" to generate assets' && exit 1);
make generate
git diff --exit-code || (echo 'Please run "make generate" to generate assets' && exit 1);
- name: Check go fmt
run: |
make fmt &&
git diff --cached --exit-code || (echo 'Please run "make fmt" to verify gofmt' && exit 1);
make fmt
git diff --exit-code || (echo 'Please run "make fmt" to verify gofmt' && exit 1);
- name: Check go fmt
run: |
make vet
git diff --cached --exit-code || (echo 'Please run "make vet" to verify govet' && exit 1);
git diff --exit-code || (echo 'Please run "make vet" to verify govet' && exit 1);
- name: Check golangci lint
run: |
make golangci-lint
Expand Down

0 comments on commit 0c3ce17

Please sign in to comment.