Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: yamllint

permissions:
contents: read

on:
pull_request:
types: [ opened, edited, reopened, synchronize, ready_for_review ]

jobs:
yamllint-check:
name: yaml-lint
uses: metal3-io/project-infra/.github/workflows/yamllint.yaml@main
with:
ref: ${{ github.event.pull_request.head.sha }}
14 changes: 14 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'

rules:
trailing-spaces: enable
key-duplicates: enable
indentation:
spaces: 2
indent-sequences: false # Enforce k8s-style indentation
check-multi-line-strings: false
truthy:
allowed-values: [ 'true', 'false', 'yes', 'no', 'on' ]