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
+25
View File
@@ -0,0 +1,25 @@
when:
- event: release
steps:
- name: test
image: golang:latest
commands:
- go test ./...
- name: build
image: golang:latest
commands:
- VERSION=${CI_COMMIT_TAG}
- go build -ldflags="-s -w -X main.version=${VERSION}" -o node-lookup ./...
depends_on: [test]
- name: release
image: woodpeckerci/plugin-gitea-release
settings:
api_key:
from_secret: GITEA_TOKEN
base_url: https://git.unkin.net
files: node-lookup
title: ${CI_COMMIT_TAG}
depends_on: [build]