Skip to content

Commit

Permalink
add a GitHub workflow to validate YAML files
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper committed Oct 11, 2023
1 parent 6243651 commit 6cc0819
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/check-yaml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: YAML Validation
on: [push, workflow_dispatch]

jobs:
yaml-check:
runs-on: ubuntu-latest
steps:

- name: Checkout this repository
uses: actions/[email protected]

- name: Lint YAML files
uses: karancode/[email protected]
with:
yamllint_config_datapath: .yamllint.yml
yamllint_strict: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
extends: default

rules:
line-length: disable
truthy:
check-keys: false

ignore: |
charts/*

0 comments on commit 6cc0819

Please sign in to comment.