Skip to content

Commit

Permalink
Add pre-commit config to validate GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jan 21, 2025
1 parent 31eae71 commit e0f2e02
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,19 @@ repos:
- id: ruff
- id: ruff-format
args: [ --check ]

# GitHub Actions workflows
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
name: Validate GitHub Actions workflow YAML
files: '.github/workflows/.*\.ya?ml'
- repo: local
hooks:
- id: validate-github-actions
name: Validate GitHub Actions workflow schema
language: rust
entry: action-validator
additional_dependencies: [ cli:action-validator:0.6.0 ]
files: '.github/workflows/.*\.ya?ml'

0 comments on commit e0f2e02

Please sign in to comment.