Update pipeline with Go code review (#25)

Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/25
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-committed-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
Lauris BH 2024-03-30 15:52:30 +00:00 committed by Lauris BH
parent b67c23ab79
commit ca1f8e48fe

View File

@ -7,15 +7,27 @@ when:
variables: variables:
- &golang "golang:1.22" - &golang "golang:1.22"
- &golangci-lint "golangci/golangci-lint:v1.57-alpine"
- &reviewdog-golangci-lint "woodpeckerci/plugin-reviewdog-golangci-lint:1.57"
steps: steps:
vendor: vendor:
image: *golang image: *golang
commands: go mod vendor commands: go mod vendor
review-go:
image: *reviewdog-golangci-lint
settings:
token:
from_secret: reviewdog_token
when:
event: pull_request
lint: lint:
image: golangci/golangci-lint:v1.57-alpine image: *golangci-lint
commands: golangci-lint run commands: golangci-lint run
when:
event: [push, tag, cron]
test: test:
image: *golang image: *golang