Skip to content

Commit

Permalink
Add new workflow: yamllint
Browse files Browse the repository at this point in the history
This should ensure some consistency within the various YAML files.
  • Loading branch information
cjeanner committed Apr 3, 2024
1 parent 5e13376 commit 8f2d2cb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Run yaml-lint
on: # noqa: yaml[truthy]
pull_request:
branches:
- main
- stable
paths:
- "**.yaml"
- "**.yml"

jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install yaml-lint
run: pip install yamllint

- name: Run yaml-lint
run: yamllint -s *

0 comments on commit 8f2d2cb

Please sign in to comment.