Merge pull request #626 from cschug/feat_yamllint

feat: lint YAML files on pull requests on the main branch
This commit is contained in:
Christoph Schug 2024-12-27 10:34:34 +01:00 committed by GitHub
commit c888d87ac5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 0 deletions

19
.github/workflows/lint.yaml vendored Normal file
View File

@ -0,0 +1,19 @@
---
name: Lint
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: yamllint --strict -- $(git ls-files '*.yaml' '*.yml')

7
.yamllint Normal file
View File

@ -0,0 +1,7 @@
---
extends: default
rules:
line-length:
max: 160
level: warning