Only run actionlint on github workflow files (#5154)

* Add test to fail on dependabot.yml

* Run only on .github/workflows
This commit is contained in:
Amin Vakil
2026-08-19 10:45:49 +09:00
committed by GitHub
parent a1ff838e9e
commit 5c8ca023e6
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
Before:
call ale#assert#SetUpLinterTest('yaml', 'actionlint')
call ale#test#SetFilename('/.github/file.yml')
call ale#test#SetFilename('/.github/workflows/file.yml')
After:
call ale#assert#TearDownLinterTest()
@@ -18,3 +18,8 @@ Execute(Options should be added to command):
Execute(actionlint not run on files outside of /.github/ paths):
call ale#test#SetFilename('/something-else/file.yml')
Execute(actionlint not run on Dependabot configuration files):
call ale#test#SetFilename('/.github/dependabot.yml')
AssertLinterNotExecuted