feat: add pre-commit workflow (#10)
- enforce pre-commit is run for all pull-requests Reviewed-on: #10
This commit is contained in:
parent
72a892eb14
commit
0daa026f01
@ -18,7 +18,6 @@ repos:
|
||||
- id: detect-private-key
|
||||
- id: end-of-file-fixer
|
||||
- id: forbid-new-submodules
|
||||
- id: no-commit-to-branch
|
||||
- id: pretty-format-json
|
||||
- id: trailing-whitespace
|
||||
|
||||
|
||||
9
.woodpecker/pre-commit.yaml
Normal file
9
.woodpecker/pre-commit.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
when:
|
||||
- event: pull_request
|
||||
|
||||
steps:
|
||||
- name: pre-commit
|
||||
image: git.unkin.net/unkin/almalinux9-base:latest
|
||||
commands:
|
||||
- dnf install uv kustomize kubeconform helm -y
|
||||
- uvx pre-commit run --all-files
|
||||
@ -3,4 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- platform.yaml
|
||||
- platform.yaml
|
||||
|
||||
@ -3,4 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- platform.yaml
|
||||
- platform.yaml
|
||||
|
||||
Loading…
Reference in New Issue
Block a user