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

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

31
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,31 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Format
run: |
make format
git diff --exit-code
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56
args: --timeout=5m
- name: Test
run: make test