2023-02-17 18:47:08 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Lint
|
|
|
|
image: docker.io/golangci/golangci-lint:latest
|
|
|
|
environment:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
CGO_ENABLED: "0"
|
|
|
|
GOMEMLIMIT: "1150MiB"
|
|
|
|
commands:
|
|
|
|
- golangci-lint run -v
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
image: docker.io/golang:1.20-buster
|
|
|
|
commands:
|
|
|
|
- go mod download
|
2023-07-18 18:36:33 +00:00
|
|
|
- go run gotest.tools/gotestsum@latest -f pkgname-and-test-fails -- -race -shuffle=on ./...
|
|
|
|
|
|
|
|
---
|
2023-07-18 18:55:22 +00:00
|
|
|
kind: template
|
|
|
|
load: renovate.yaml
|
|
|
|
data:
|
|
|
|
gitea_token:
|
|
|
|
from_secret: gitea_token
|
|
|
|
github_token:
|
|
|
|
from_secret: github_token
|
2023-07-18 18:36:33 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
cron:
|
2023-07-18 18:55:22 +00:00
|
|
|
- housekeeping
|