Skip to content

Commit

Permalink
Makefile: "go mod tidy" after generate
Browse files Browse the repository at this point in the history
  • Loading branch information
bwesterb committed May 11, 2020
1 parent 7540eaa commit 5795b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
go-version: ${{ matrix.GOVER }}
- name: Verifying Code
run: |
go generate -v ./... && test -z "$(git status --porcelain)"
go generate -v ./... && go mod tidy && test -z "$(git status --porcelain)"
go vet ./...
- name: Building
run: go build -v ./...
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ cover: clean

generate: clean
$(GO) generate -v ./...
$(GO) mod tidy

bootstrap:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(TOOLS_DIR) v1.18.0
Expand Down

0 comments on commit 5795b49

Please sign in to comment.