feat(ci): move to Drone CI
This commit is contained in:
parent
517b7f1ed4
commit
26bac51973
2 changed files with 53 additions and 2 deletions
51
.drone.yml
Normal file
51
.drone.yml
Normal 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
|
|
@ -10,7 +10,7 @@ insert_final_newline = false
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.{go, go2}]
|
[*.go]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
ij_smart_tabs = true
|
ij_smart_tabs = true
|
||||||
ij_go_GROUP_CURRENT_PROJECT_IMPORTS = 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_move_all_stdlib_imports_in_one_group = true
|
||||||
ij_go_remove_redundant_import_aliases = true
|
ij_go_remove_redundant_import_aliases = true
|
||||||
|
|
||||||
[{*.yaml, *.yml}]
|
[*.{yaml,yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
tab_width = 2
|
tab_width = 2
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
Loading…
Reference in a new issue