Skip to content

Commit

Permalink
ci: add validation action
Browse files Browse the repository at this point in the history
  • Loading branch information
satta authored and jasonish committed Aug 15, 2024
1 parent df43b80 commit 986146d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---

name: YAML Validation

on:
push:
branches: [ '**' ]
pull_request:
branches: [ master ]

jobs:
yamllint:
name: 'yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: index.yaml
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
extends: default

rules:
line-length: disable
truthy:
check-keys: false
document-start:
present: false

0 comments on commit 986146d

Please sign in to comment.