improve pipeline config

This commit is contained in:
crapStone 2024-07-23 22:00:33 +02:00
parent efd1adae0f
commit 79f1a6b223
No known key found for this signature in database
GPG key ID: 22D4BF0CF7CC29C8
2 changed files with 8 additions and 41 deletions

View file

@ -1,9 +1,7 @@
when:
- event: pull_request
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- renovate/**
steps:
lint:
@ -14,28 +12,16 @@ steps:
- 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:v3.0.3
when:
- event: pull_request
- event: push
branch: renovate/*
yamllint:
image: pipelinecomponents/yamllint:0.31.3
depends_on: []
commands:
- yamllint .
when:
- event: pull_request
- event: push
branch: renovate/*
prettier:
image: docker.io/woodpeckerci/plugin-prettier:0.1.0