8cd818c535
Signed-off-by: Martijn van der Kleijn <martijn.niji@gmail.com>
26 lines
423 B
YAML
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
|