-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use gomods; add make generate; add CI check for tidiness+generation (#…
…413)
- Loading branch information
Showing
6 changed files
with
124 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,11 +130,25 @@ format-go-fmt: | |
cd ./ops && go fmt ./... | ||
cd ./integration-tests && go fmt ./... | ||
|
||
.PHONY: gomods | ||
gomods: ## Install gomods | ||
go install github.com/jmank88/[email protected] | ||
|
||
.PHONY: gomodtidy | ||
gomodtidy: | ||
go mod tidy | ||
cd ./ops && go mod tidy | ||
cd ./integration-tests && go mod tidy | ||
gomodtidy: gomods | ||
gomods tidy | ||
|
||
.PHONY: mockery | ||
mockery: $(mockery) ## Install mockery. | ||
go install github.com/vektra/mockery/[email protected] | ||
|
||
.PHONY: rm-mocked | ||
rm-mocked: | ||
grep -rl "^// Code generated by mockery" | grep .go$ | xargs -r rm | ||
|
||
.PHONY: generate | ||
generate: mockery gomods | ||
gomods -w go generate -x ./... | ||
|
||
.PHONY: lint-go | ||
lint-go: lint-go-ops lint-go-relayer lint-go-test | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.