forgejo-sdk/.woodpecker/lint.yml
Martijn van der Kleijn 8cd818c535 Update CI workflows to run on PR for integration
Signed-off-by: Martijn van der Kleijn <martijn.niji@gmail.com>
2024-06-16 00:10:32 +02:00

26 lines
423 B
YAML

variables:
- &golang_image 'golang:1.22'
when:
- branch: main
event: push
- event: [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