summaryrefslogtreecommitdiff
path: root/test/linter/test_yaml_actionlint.vader
blob: db34007f1aa6618559bf200705ce38699d8d53e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Before:
  call ale#assert#SetUpLinterTest('yaml', 'actionlint')
  call ale#test#SetFilename('/.github/file.yml')

After:
  call ale#assert#TearDownLinterTest()

Execute(Command should always have -no-color, -oneline and - options):
  let g:ale_yaml_actionlint_options = ''

  AssertLinter 'actionlint', ale#Escape('actionlint') . '  -no-color -oneline - '

Execute(Options should be added to command):
  let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes='

  AssertLinter 'actionlint',
  \ ale#Escape('actionlint') .  ' -shellcheck= -pyflakes= -no-color -oneline - '

Execute(actionlint not run on files outside of /.github/ paths):
  call ale#test#SetFilename('/something-else/file.yml')