Skip to content

Commit

Permalink
Added linter.yml
Browse files Browse the repository at this point in the history
Run yamllint on yaml files
  • Loading branch information
ccoulombe authored Sep 12, 2024
1 parent d9e2588 commit 2d879ec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Linting

# yamllint disable-line rule:truthy
on:
push:
paths:
- '**.yaml'
- '**.yml'
pull_request:
paths:
- '**.yaml'
- '**.yml'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

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

- name: Install yamllint
run: pip install yamllint

- name: Lint YAML files
run: yamllint --format github .

0 comments on commit 2d879ec

Please sign in to comment.