2024-04-27 21:26:21 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch: renovate/*
|
|
|
|
|
|
|
|
steps:
|
|
|
|
lint:
|
|
|
|
depends_on: []
|
|
|
|
image: golangci/golangci-lint:v1.57.2
|
|
|
|
commands:
|
|
|
|
- go version
|
|
|
|
- go install mvdan.cc/gofumpt@latest
|
|
|
|
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
|
|
|
- golangci-lint run --timeout 5m --build-tags integration
|
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch: renovate/*
|
|
|
|
|
|
|
|
editor-config:
|
|
|
|
depends_on: []
|
|
|
|
image: mstruebing/editorconfig-checker:2.7.2
|
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch: renovate/*
|
2024-04-27 23:40:37 +02:00
|
|
|
|
|
|
|
yamllint:
|
|
|
|
image: pipelinecomponents/yamllint:0.31.1
|
|
|
|
depends_on: []
|
2024-04-27 23:46:03 +02:00
|
|
|
commands:
|
|
|
|
- yamllint .
|
2024-04-27 23:40:37 +02:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch: renovate/*
|