Skip to content

Commit

Permalink
Add github workflow for YAML lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdailey committed Jun 28, 2023
1 parent b5460d9 commit e644850
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: YAML Lint

on:
push:
paths:
- "**.yml"
- "**.yaml"
- .github/workflows/yaml-lint.yml
pull_request:
paths:
- "**.yml"
- "**.yaml"
- .github/workflows/yaml-lint.yml

jobs:
markdownlint:
name: YAML Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Lint YAML Files
uses: ibiqlik/action-yamllint@v3
4 changes: 4 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rules:
line-length: {max: 100, allow-non-breakable-words: true}
document-start: disable
comments-indentation: disable

0 comments on commit e644850

Please sign in to comment.