ci: add golangci-lint|godocs pipeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-04-19 23:05:30 +02:00
parent aa63dafad4
commit 77a5f190a2
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -186,3 +186,59 @@ steps:
volumes:
- name: gopath
temp: {}
---
kind: pipeline
type: docker
name: golangci-lint|godocs
platform:
os: linux
arch: amd64
node:
r: as
steps:
- name: golangci-lint
image: docker.io/library/golang:1.20.3-alpine3.17
pull: always
environment:
CGO_ENABLED: 0
commands:
- go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
- golangci-lint version
- golangci-lint run -v --timeout 5m
- name: goreportcard refresh
image: docker.io/curlimages/curl:8.00.1
depends_on: [golangci-lint]
pull: if-not-exists
trigger:
ref:
include:
- "refs/tags/**"
- refs/heads/development
exclude:
- "refs/pull/**"
commands:
- uname -r
- curl --version
- curl -sS -X POST -F \"repo=git.dotya.ml/${DRONE_REPO}\" https://goreportcard.com/checks -o /dev/null
- name: godocs refresh
image: docker.io/curlimages/curl:8.00.1
pull: if-not-exists
depends_on: [golangci-lint]
trigger:
ref:
include:
- "refs/tags/**"
- refs/heads/development
exclude: ["refs/pull/**"]
commands:
- uname -r
- curl --version
- curl -sS -X POST https://godocs.io/git.dotya.ml/${DRONE_REPO}/refresh -o /dev/null