feat(ci): move to Drone CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is passing

This commit is contained in:
Peter 2023-02-22 22:12:07 +01:00
parent 517b7f1ed4
commit 26bac51973
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 53 additions and 2 deletions

51
.drone.yml Normal file
View file

@ -0,0 +1,51 @@
---
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-bullseye
network_mode: host
environment:
GO111MODULE: "on"
CGO_ENABLED: "1"
DOCKER_HOST: tcp://localhost:2375
commands:
- go install gotest.tools/gotestsum@latest
- gotestsum -f pkgname-and-test-fails -- -race -shuffle=on ./...
---
kind: pipeline
type: docker
name: housekeeping
trigger:
event:
- cron
cron:
- daily
steps:
- name: Renovate
image: docker.io/renovate/renovate
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

View file

@ -10,7 +10,7 @@ insert_final_newline = false
max_line_length = 120
trim_trailing_whitespace = true
[*.{go, go2}]
[*.go]
indent_style = tab
ij_smart_tabs = true
ij_go_GROUP_CURRENT_PROJECT_IMPORTS = true
@ -21,7 +21,7 @@ ij_go_move_all_imports_in_one_declaration = true
ij_go_move_all_stdlib_imports_in_one_group = true
ij_go_remove_redundant_import_aliases = true
[{*.yaml, *.yml}]
[*.{yaml,yml}]
indent_size = 2
tab_width = 2
insert_final_newline = true