feat(ci): add lint pipeline
ci/woodpecker/pr/lint Pipeline failed
Details
ci/woodpecker/pr/lint Pipeline failed
Details
This commit is contained in:
parent
aa65e97df4
commit
78673703e6
|
@ -11,5 +11,5 @@ charset = utf-8
|
|||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.json]
|
||||
[*.{json,yml}]
|
||||
indent_size = 2
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
ignored:
|
||||
- DL3018 # warning: Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>`
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
|
||||
when:
|
||||
event: pull_request
|
||||
|
||||
steps:
|
||||
woodpecker:
|
||||
image: woodpeckerci/woodpecker-cli:v2.7.0-alpine
|
||||
commands:
|
||||
- woodpecker-cli lint .woodpecker/*.yml
|
||||
when:
|
||||
path: .woodpecker/**/*.yml
|
||||
|
||||
dockerfile:
|
||||
image: hcr.io/hadolint/hadolint:v2.12.0
|
||||
commands:
|
||||
- hadolint Dockerfile
|
||||
# when:
|
||||
# path:
|
||||
# - Dockerfile
|
||||
|
||||
cspell:
|
||||
image: ghcr.io/streetsidesoftware/cspell:8.13.1
|
||||
commands:
|
||||
- cspell lint .
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"words": [
|
||||
"aireone",
|
||||
"buildx",
|
||||
"gitea",
|
||||
"woodpeckerci"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue