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

This commit is contained in:
Felipe M 2025-02-21 09:59:59 +01:00
parent ba23c2816c
commit 110c7476e4
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
3 changed files with 59 additions and 3 deletions

23
.woodpecker/ci.yml Normal file
View 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: golangci/golangci-lint:v1.56
commands:
- make lint
test:
image: golang:1.24
commands:
- make test