Skip to content

Commit

Permalink
ci: add commands to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine committed Jun 24, 2024
1 parent 7eddfc5 commit cc930c7
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,46 @@ install-tools:
go install github.com/vektra/mockery/v2@v2.43.2
echo done

.PHONY: format
format:
gofmt -s -w .

.PHONY: format-diff
format-diff:
gofmt -s -w . && git diff --exit-code

.PHONY: tidy
tidy:
go mod tidy

.PHONY: tidy-diff
tidy-diff:
go mod tidy && git diff --exit-code

.PHONY: download
download:
go mod download

.PHONY: verify
verify:
go mod verify

.PHONY: generate
generate:
echo running code generation
go generate
echo done
go generate ./...

.PHONY: generate-diff
generate-diff:
go generate ./... && git diff --exit-code

.PHONY: build
build:
go build -v ./...

.PHONY: unit-tests
unit-tests:
go test -v ./...

.PHONY: integration-tests
integration-tests:
go test ./... -tags integration

0 comments on commit cc930c7

Please sign in to comment.