diff options
author | bretello <bretello@users.noreply.github.com> | 2022-05-03 03:03:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 10:03:05 +0900 |
commit | c694a241883ec5c33f972a612cfcd464cda3c5fa (patch) | |
tree | 33d531ac54d1fd25dd06ad833e0afaa747f43b6b /test/handler | |
parent | 56399106fcf9d80d476307576bc307e67f0167e2 (diff) | |
download | ale-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.vader | 28 |
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]', + \ ]) |