Files
ephemerup/.woodpecker/build.yaml

39 lines
737 B
YAML
Raw Normal View History

2025-12-02 20:35:09 +01:00
matrix:
2025-12-02 20:18:27 +01:00
platform:
- linux/amd64
goversion:
- 1.24
labels:
platform: ${platform}
steps:
build:
when:
event: [push]
image: golang:${goversion}
commands:
- go get
- go build
2025-12-02 20:35:09 +01:00
linter:
when:
event: [manual]
image: golang:${goversion}
commands:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0
- golangci-lint --version
- golangci-lint run ./...
depends_on: [build]
2025-12-02 20:18:27 +01:00
test:
when:
event: [push]
image: golang:${goversion}
commands:
- go get
2025-12-02 20:41:45 +01:00
- go test -v -cover ./...
2025-12-02 20:31:19 +01:00
- cd upctl
2025-12-02 20:41:45 +01:00
- go test -v -cover ./...
2025-12-02 20:31:19 +01:00
depends_on: [build]