Skip to content

Commit

Permalink
feat: add workflow for linting new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
esolitos committed Aug 8, 2024
1 parent ccc083b commit a9fde76
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/.yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
extends: default

rules:
line-length: disable
truthy:
check-keys: false
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Lint

on:
push:
branches:
- 1.x
pull_request:
branches:
- 1.x

defaults:
run:
# Specify to ensure "pipefail and errexit" are set.
# Ref: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell
shell: bash

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Lint YAML files
working-directory: .github/workflows/
run: |
yamllint --format github .

0 comments on commit a9fde76

Please sign in to comment.