Add unit-test and lint woodpecker pipelines for pull requests

Also move .woodpecker.yaml into .woodpecker/release.yaml for consistency.
This commit is contained in:
2026-03-25 16:01:38 +11:00
parent 03abf1b976
commit c8df109841
4 changed files with 24 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
when:
- event: pull_request
steps:
- name: lint
image: golangci/golangci-lint:latest
commands:
- golangci-lint run ./...
+8
View File
@@ -0,0 +1,8 @@
when:
- event: pull_request
steps:
- name: pre-commit
image: git.unkin.net/unkin/almalinux9-base:20260308
commands:
- uvx pre-commit run --all-files
+8
View File
@@ -0,0 +1,8 @@
when:
- event: pull_request
steps:
- name: unit-tests
image: golang:latest
commands:
- go test -v -race ./...