summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorbretello <bretello@users.noreply.github.com>2022-05-03 03:03:05 +0200
committerGitHub <noreply@github.com>2022-05-03 10:03:05 +0900
commitc694a241883ec5c33f972a612cfcd464cda3c5fa (patch)
tree33d531ac54d1fd25dd06ad833e0afaa747f43b6b /test/handler
parent56399106fcf9d80d476307576bc307e67f0167e2 (diff)
downloadale-c694a241883ec5c33f972a612cfcd464cda3c5fa.zip
add yaml actionlint support (github actions) (#4173)
Co-authored-by: bretello <bretello@distruzione.org>
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_actionlint_handler.vader28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/handler/test_actionlint_handler.vader b/test/handler/test_actionlint_handler.vader
new file mode 100644
index 00000000..557cff02
--- /dev/null
+++ b/test/handler/test_actionlint_handler.vader
@@ -0,0 +1,28 @@
+Before:
+ runtime! ale/handlers/actionlint.vim
+
+After:
+ call ale#linter#Reset()
+
+Execute(Problems should be parsed correctly for actionlint):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 2,
+ \ 'col': 1,
+ \ 'type': 'E',
+ \ 'text': '"jobs" section is missing in workflow',
+ \ 'code': 'syntax-check',
+ \ },
+ \ {
+ \ 'lnum': 56,
+ \ 'col': 23,
+ \ 'type': 'E',
+ \ 'text': 'property "unknown_input" is not defined in object type {input7: bool; input0: any; input1: any; input2: string; input3: any; input4: any; input5: number; input6: number}',
+ \ 'code': 'expression',
+ \ },
+ \ ],
+ \ ale#handlers#actionlint#Handle(bufnr(''), [
+ \ '.codecov.yaml:2:1: "jobs" section is missing in workflow [syntax-check]',
+ \ 'workflow_call_event.yaml:56:23: property "unknown_input" is not defined in object type {input7: bool; input0: any; input1: any; input2: string; input3: any; input4: any; input5: number; input6: number} [expression]',
+ \ ])