forgejo-sdk/.woodpecker/lint.yml

25 lines
396 B
YAML
Raw Normal View History

variables:
- &golang_image 'golang:1.22'
when:
- event: [push, pull_request, manual]
steps:
- name: vendor
image: *golang_image
directory: forgejo
commands:
- go mod vendor
- name: vet
image: *golang_image
depends_on: [vendor]
commands:
- make vet
- name: lint
image: *golang_image
depends_on: [vendor]
commands:
- make ci-lint