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
31
.forgejo/workflows/ci.yml
Normal file
31
.forgejo/workflows/ci.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue