mirror of
https://codeberg.org/woodpecker-plugins/go-plugin.git
synced 2024-11-24 22:35:39 +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:
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user