Skip to content

Commit 65fcdae

Browse files
committed
Add linter for workflow actions
I'm adding a pre-commit hook that uses actionlint to verify that the Github workflow files are syntactically correct. From what I can find, actionlint seems to be pretty much the standard tool for checking workflow files.
1 parent 85bfb11 commit 65fcdae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ repos:
4141
hooks:
4242
- id: pyupgrade
4343
args: [--py3-plus]
44+
45+
- repo: https://github.com/rhysd/actionlint
46+
rev: v1.6.15
47+
hooks:
48+
- id: actionlint-docker

0 commit comments

Comments
 (0)