This repository has been archived on 2023-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
kreaper/.agola/config.yml

76 lines
2 KiB
YAML
Raw Permalink Normal View History

2022-09-22 07:46:56 +00:00
version: v0
runs:
2022-09-27 19:20:49 +00:00
- 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
2022-09-22 07:46:56 +00:00
- name: Test and lint
tasks:
- name: Checkout code
runtime:
containers:
2022-09-27 19:20:49 +00:00
- image: docker.io/alpine/git
2022-09-22 07:46:56 +00:00
steps:
- clone:
- save_to_workspace:
contents:
- source_dir: .
dest_dir: .
paths:
2022-09-27 19:20:49 +00:00
- "**"
2022-09-22 07:46:56 +00:00
- name: Run tests
runtime:
containers:
2022-09-27 19:20:49 +00:00
- image: docker.io/golang:1.19-bullseye
2022-09-22 07:46:56 +00:00
environment:
GO111MODULE: "on"
CGO_ENABLED: "1"
steps:
- restore_workspace:
2022-09-27 19:20:49 +00:00
dest_dir: .
2022-09-22 07:46:56 +00:00
- run:
2022-09-27 19:20:49 +00:00
name: Install gotestsum
command: go install gotest.tools/gotestsum@latest
2022-09-22 07:46:56 +00:00
- run:
2022-09-27 19:20:49 +00:00
name: Create out directory
command: mkdir -p out
2022-09-22 07:46:56 +00:00
- run:
2022-09-27 19:20:49 +00:00
name: Run tests
command: gotestsum -- -coverprofile=out/cover.txt -shuffle=on -race -covermode=atomic ./...
2022-09-22 07:46:56 +00:00
depends:
- Checkout code
- name: Lint code
runtime:
containers:
- image: docker.io/golangci/golangci-lint
environment:
GO111MODULE: "on"
CGO_ENABLED: "0"
steps:
- restore_workspace:
2022-09-27 19:20:49 +00:00
dest_dir: .
2022-09-22 07:46:56 +00:00
- run:
2022-09-27 19:20:49 +00:00
name: Run golangci-lint
command: golangci-lint run -v
2022-09-22 07:46:56 +00:00
depends:
- Checkout code