nurse/.drone.yml
Peter Kurfer 3933110710
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
feat(ci): cache Go deps
2023-03-05 11:36:05 +01:00

72 lines
1.4 KiB
YAML

---
kind: pipeline
type: docker
name: default
trigger:
event:
- push
- pull_request
- tag
steps:
- name: Lint
image: docker.io/golangci/golangci-lint:latest
environment:
GO111MODULE: "on"
CGO_ENABLED: "0"
GOMEMLIMIT: "1150MiB"
volumes:
- name: go-cache
path: /go
commands:
- golangci-lint run -v
- name: Test
image: docker.io/golang:1.20-bullseye
network_mode: host
environment:
GO111MODULE: "on"
CGO_ENABLED: "1"
DOCKER_HOST: tcp://localhost:2375
volumes:
- name: go-cache
path: /go
commands:
- go install gotest.tools/gotestsum@latest
- gotestsum --junitfile out/results.xml --format pkgname-and-test-fails -- -race -shuffle=on ./...
- name: junit-reports
image: ghcr.io/rohit-gohri/drone-junit:v0
settings:
paths: out/results.xml
volumes:
- name: go-cache
temp: { }
---
kind: pipeline
type: docker
name: housekeeping
trigger:
event:
- cron
cron:
- housekeeping
steps:
- name: Renovate
image: code.icb4dc0.de/prskr/ci-images/renovate:latest
commands:
- renovate "${DRONE_REPO}"
environment:
RENOVATE_TOKEN:
from_secret: gitea_token
GITHUB_COM_TOKEN:
from_secret: github_token
RENOVATE_PLATFORM: gitea
RENOVATE_AUTODISCOVER: "false"
RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1
LOG_LEVEL: info