ci: makefile commands to test, lint and format
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
CI / test (push) Has been cancelled
Release / release (push) Has been cancelled
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
CI / test (push) Has been cancelled
Release / release (push) Has been cancelled
This commit is contained in:
parent
ba23c2816c
commit
7c588033c9
3 changed files with 67 additions and 3 deletions
23
.woodpecker/ci.yml
Normal file
23
.woodpecker/ci.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
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:
|
||||
- make ci-lint
|
||||
|
||||
test:
|
||||
image: golang:1.24
|
||||
commands:
|
||||
- make test
|
Loading…
Add table
Add a link
Reference in a new issue