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
f9e69546fb
3 changed files with 68 additions and 3 deletions
24
.woodpecker/ci.yml
Normal file
24
.woodpecker/ci.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
branch:
|
||||
- main
|
||||
|
||||
steps:
|
||||
format:
|
||||
image: golang:1.24
|
||||
commands:
|
||||
- make format
|
||||
- git diff --exit-code # Fail if files were changed
|
||||
|
||||
lint:
|
||||
image: golang:1.24
|
||||
commands:
|
||||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5
|
||||
- make lint
|
||||
|
||||
test:
|
||||
image: golang:1.24
|
||||
commands:
|
||||
- make test
|
Loading…
Add table
Add a link
Reference in a new issue