2024-04-27 21:26:21 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2024-04-29 12:48:00 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2024-04-27 21:26:21 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
lint:
|
|
|
|
depends_on: []
|
2024-11-18 00:07:46 +00:00
|
|
|
image: golangci/golangci-lint:v1.62.0
|
2024-04-27 21:26:21 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
editor-config:
|
|
|
|
depends_on: []
|
2024-07-08 00:52:53 +00:00
|
|
|
image: mstruebing/editorconfig-checker:v3.0.3
|
2024-04-28 20:47:04 +00:00
|
|
|
|
2024-04-28 21:48:07 +00:00
|
|
|
yamllint:
|
2024-09-29 20:50:14 +00:00
|
|
|
image: pipelinecomponents/yamllint:0.32.1
|
2024-04-28 21:48:07 +00:00
|
|
|
depends_on: []
|
|
|
|
commands:
|
|
|
|
- yamllint .
|
|
|
|
|
2024-04-28 20:47:04 +00:00
|
|
|
prettier:
|
2024-09-29 20:49:56 +00:00
|
|
|
image: docker.io/woodpeckerci/plugin-prettier:0.2.0
|
2024-04-28 20:47:04 +00:00
|
|
|
depends_on: []
|
|
|
|
settings:
|
|
|
|
version: 3.2.5
|