2024-04-27 21:26:21 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
2024-04-29 12:48:00 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
- renovate/**
|
2024-04-27 21:26:21 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
lint:
|
|
|
|
depends_on: []
|
2024-05-05 00:59:58 +00:00
|
|
|
image: golangci/golangci-lint:v1.58.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
|
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch: renovate/*
|
|
|
|
|
|
|
|
editor-config:
|
|
|
|
depends_on: []
|
2024-05-07 09:09:27 +00:00
|
|
|
image: mstruebing/editorconfig-checker:v3.0.1
|
2024-04-27 21:26:21 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch: renovate/*
|
2024-04-28 20:47:04 +00:00
|
|
|
|
2024-04-28 21:48:07 +00:00
|
|
|
yamllint:
|
|
|
|
image: pipelinecomponents/yamllint:0.31.1
|
|
|
|
depends_on: []
|
|
|
|
commands:
|
|
|
|
- yamllint .
|
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch: renovate/*
|
|
|
|
|
2024-04-28 20:47:04 +00:00
|
|
|
prettier:
|
|
|
|
image: docker.io/woodpeckerci/plugin-prettier:0.1.0
|
|
|
|
depends_on: []
|
|
|
|
settings:
|
|
|
|
version: 3.2.5
|