ci: add lint pipeline

This commit is contained in:
Aire-One 2024-08-23 00:57:04 +02:00
parent 6e46013a9a
commit 7aa02a1aa2
1 changed files with 25 additions and 0 deletions

25
.woodpecker/lint.yaml Normal file
View File

@ -0,0 +1,25 @@
---
when:
event: pull_request
steps:
woodpecker:
image: woodpeckerci/woodpecker-cli:v2.7.0-alpine
commands:
- woodpecker-cli lint .woodpecker/*.yaml
when:
path: .woodpecker/**/*.yaml
depends_on: []
dockerfile:
image: ghcr.io/hadolint/hadolint:v2.12.0
when:
path:
- Dockerfile
depends_on: []
cspell:
image: ghcr.io/streetsidesoftware/cspell:8.13.3
commands:
- /usr/local/bin/cspell-cli lint .
depends_on: []