mirror of
https://codeberg.org/woodpecker-plugins/go-plugin.git
synced 2024-12-26 20:37:43 +01:00
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:
parent
b67c23ab79
commit
ca1f8e48fe
@ -7,15 +7,27 @@ when:
|
||||
|
||||
variables:
|
||||
- &golang "golang:1.22"
|
||||
- &golangci-lint "golangci/golangci-lint:v1.57-alpine"
|
||||
- &reviewdog-golangci-lint "woodpeckerci/plugin-reviewdog-golangci-lint:1.57"
|
||||
|
||||
steps:
|
||||
vendor:
|
||||
image: *golang
|
||||
commands: go mod vendor
|
||||
|
||||
review-go:
|
||||
image: *reviewdog-golangci-lint
|
||||
settings:
|
||||
token:
|
||||
from_secret: reviewdog_token
|
||||
when:
|
||||
event: pull_request
|
||||
|
||||
lint:
|
||||
image: golangci/golangci-lint:v1.57-alpine
|
||||
image: *golangci-lint
|
||||
commands: golangci-lint run
|
||||
when:
|
||||
event: [push, tag, cron]
|
||||
|
||||
test:
|
||||
image: *golang
|
||||
|
Loading…
Reference in New Issue
Block a user