Skip to content

Commit

Permalink
Run yamllint on each PR run and main merge fix #39
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Oct 11, 2024
1 parent 8a3d300 commit 7f5bbb8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate YAML Configs

Check warning on line 1 in .github/workflows/pr-lint.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

1:1 [document-start] missing document start "---"

on:

Check warning on line 3 in .github/workflows/pr-lint.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

3:1 [truthy] truthy value should be one of [false, true]
push:
branches:
- main
pull_request:

jobs:
validate-yaml:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository

Check failure on line 14 in .github/workflows/pr-lint.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

14:5 [indentation] wrong indentation: expected 6 but found 4
uses: actions/checkout@v3

- name: Install yamllint
run: |
sudo apt-get update
sudo apt-get install -y yamllint
- name: Validate All YAML Files
run: |
find . -name "*.yaml" -o -name "*.yml" -exec yamllint {} \;

0 comments on commit 7f5bbb8

Please sign in to comment.