ci: makefile commands to test, lint and format
Some checks failed
CI / test (push) Waiting to run
Release / release (push) Waiting to run
ci/woodpecker/push/ci Pipeline failed
Some checks failed
CI / test (push) Waiting to run
Release / release (push) Waiting to run
ci/woodpecker/push/ci Pipeline failed
This commit is contained in:
parent
ba23c2816c
commit
110c7476e4
3 changed files with 59 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -78,13 +78,15 @@ run: ### Executes the project build locally
|
|||
.PHONY: format
|
||||
format: ### Executes the formatting pipeline on the project
|
||||
$(info: Make: Format)
|
||||
@bash scripts/format.sh
|
||||
@go fmt ./...
|
||||
@go mod tidy
|
||||
|
||||
.PHONY: lint
|
||||
lint: ### Check the project for errors
|
||||
$(info: Make: Lint)
|
||||
@bash scripts/lint.sh
|
||||
@golangci-lint run ./...
|
||||
|
||||
.PHONY: test
|
||||
test: ### Runs the test suite
|
||||
@bash scripts/test.sh
|
||||
$(info: Make: Test)
|
||||
@go test ${TEST_OPTIONS} -timeout=${TEST_TIMEOUT} ${SOURCE_FILES}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue