feat(ci): run renovate bot
This commit is contained in:
parent
618e114b08
commit
359be8cf44
2 changed files with 37 additions and 19 deletions
|
@ -1,13 +1,33 @@
|
||||||
version: v0
|
version: v0
|
||||||
|
|
||||||
runs:
|
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: Test and lint
|
||||||
tasks:
|
tasks:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
runtime:
|
runtime:
|
||||||
type: pod
|
|
||||||
containers:
|
containers:
|
||||||
- image: docker.io/alpine/git
|
- image: docker.io/alpine/git
|
||||||
steps:
|
steps:
|
||||||
- clone:
|
- clone:
|
||||||
- save_to_workspace:
|
- save_to_workspace:
|
||||||
|
@ -15,35 +35,31 @@ runs:
|
||||||
- source_dir: .
|
- source_dir: .
|
||||||
dest_dir: .
|
dest_dir: .
|
||||||
paths:
|
paths:
|
||||||
- '**'
|
- "**"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
runtime:
|
runtime:
|
||||||
type: pod
|
|
||||||
arch: amd64
|
|
||||||
containers:
|
containers:
|
||||||
- image: docker.io/golang:1.19-bullseye
|
- image: docker.io/golang:1.19-bullseye
|
||||||
environment:
|
environment:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
CGO_ENABLED: "1"
|
CGO_ENABLED: "1"
|
||||||
steps:
|
steps:
|
||||||
- restore_workspace:
|
- restore_workspace:
|
||||||
dest_dir: .
|
dest_dir: .
|
||||||
- run:
|
- run:
|
||||||
name: Install gotestsum
|
name: Install gotestsum
|
||||||
command: go install gotest.tools/gotestsum@latest
|
command: go install gotest.tools/gotestsum@latest
|
||||||
- run:
|
- run:
|
||||||
name: Create out directory
|
name: Create out directory
|
||||||
command: mkdir -p out
|
command: mkdir -p out
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: gotestsum -- -coverprofile=out/cover.txt -shuffle=on -race -covermode=atomic ./...
|
command: gotestsum -- -coverprofile=out/cover.txt -shuffle=on -race -covermode=atomic ./...
|
||||||
depends:
|
depends:
|
||||||
- Checkout code
|
- Checkout code
|
||||||
|
|
||||||
- name: Lint code
|
- name: Lint code
|
||||||
runtime:
|
runtime:
|
||||||
type: pod
|
|
||||||
arch: amd64
|
|
||||||
containers:
|
containers:
|
||||||
- image: docker.io/golangci/golangci-lint
|
- image: docker.io/golangci/golangci-lint
|
||||||
environment:
|
environment:
|
||||||
|
@ -51,9 +67,9 @@ runs:
|
||||||
CGO_ENABLED: "0"
|
CGO_ENABLED: "0"
|
||||||
steps:
|
steps:
|
||||||
- restore_workspace:
|
- restore_workspace:
|
||||||
dest_dir: .
|
dest_dir: .
|
||||||
- run:
|
- run:
|
||||||
name: Run golangci-lint
|
name: Run golangci-lint
|
||||||
command: golangci-lint run -v
|
command: golangci-lint run -v
|
||||||
depends:
|
depends:
|
||||||
- Checkout code
|
- Checkout code
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -17,3 +17,5 @@
|
||||||
.idea/
|
.idea/
|
||||||
dist/
|
dist/
|
||||||
out/
|
out/
|
||||||
|
.env
|
||||||
|
.env.*
|
Reference in a new issue