2025-10-28 22:21:06 +01:00
|
|
|
matrix:
|
|
|
|
|
platform:
|
|
|
|
|
- linux/amd64
|
2025-10-28 22:43:32 +01:00
|
|
|
- freebsd/amd64
|
2025-10-28 22:21:06 +01:00
|
|
|
goversion:
|
|
|
|
|
- 1.24
|
|
|
|
|
|
|
|
|
|
labels:
|
|
|
|
|
platform: ${platform}
|
|
|
|
|
|
2025-10-28 21:33:46 +01:00
|
|
|
steps:
|
|
|
|
|
build:
|
|
|
|
|
when:
|
|
|
|
|
event: [push]
|
2025-10-28 22:21:06 +01:00
|
|
|
image: golang:${goversion}
|
2025-10-28 21:33:46 +01:00
|
|
|
commands:
|
|
|
|
|
- go get
|
|
|
|
|
- go build
|
|
|
|
|
- go test
|
2025-10-28 22:38:13 +01:00
|
|
|
|
|
|
|
|
linter:
|
|
|
|
|
when:
|
|
|
|
|
event: [push]
|
|
|
|
|
image: golang:${goversion}
|
|
|
|
|
commands:
|
|
|
|
|
- go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.5.0
|
|
|
|
|
- golangci-lint run ./...
|