version: v0
runs:
- name: Renovate deps
when:
branch: main
tasks:
- name: Run renovate
runtime:
containers:
- image: docker.io/renovate/renovate
environment:
RENOVATE_PLATFORM: gitea
RENOVATE_AUTODISCOVER: 'false'
RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1
LOG_LEVEL: info
RENOVATE_TOKEN:
from_variable: gitea-token
GITHUB_COM_TOKEN:
from_variable: github-token
steps:
- run:
name: Run bot
command: renovate prskr/kreaper
- name: Test and lint
- name: Checkout code
- image: docker.io/alpine/git
- clone:
- save_to_workspace:
contents:
- source_dir: .
dest_dir: .
paths:
- "**"
- name: Run tests
- image: docker.io/golang:1.19-bullseye
GO111MODULE: "on"
CGO_ENABLED: "1"
- restore_workspace:
name: Install gotestsum
command: go install gotest.tools/gotestsum@latest
name: Create out directory
command: mkdir -p out
name: Run tests
command: gotestsum -- -coverprofile=out/cover.txt -shuffle=on -race -covermode=atomic ./...
depends:
- Checkout code
- name: Lint code
- image: docker.io/golangci/golangci-lint
CGO_ENABLED: "0"
name: Run golangci-lint
command: golangci-lint run -v