2024-04-27 22:26:21 +01:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2024-04-29 13:48:00 +01:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2024-04-27 22:26:21 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
lint:
|
|
|
|
depends_on: []
|
2024-08-19 21:20:59 +01:00
|
|
|
image: golangci/golangci-lint:v1.60.1
|
2024-04-27 22:26:21 +01: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 01:52:53 +01:00
|
|
|
image: mstruebing/editorconfig-checker:v3.0.3
|
2024-04-28 21:47:04 +01:00
|
|
|
|
2024-04-28 22:48:07 +01:00
|
|
|
yamllint:
|
2024-07-07 02:09:14 +01:00
|
|
|
image: pipelinecomponents/yamllint:0.31.3
|
2024-04-28 22:48:07 +01:00
|
|
|
depends_on: []
|
|
|
|
commands:
|
|
|
|
- yamllint .
|
|
|
|
|
2024-04-28 21:47:04 +01:00
|
|
|
prettier:
|
|
|
|
image: docker.io/woodpeckerci/plugin-prettier:0.1.0
|
|
|
|
depends_on: []
|
|
|
|
settings:
|
|
|
|
version: 3.2.5
|