Skip to content

Commit 73de79e

Browse files
committed
Add a feature test, that checks if it runs under Github Actions
related: actions/runner-images#11512 Signed-off-by: Christian Brabandt <[email protected]>
1 parent fa70b89 commit 73de79e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/testdir/check.vim

+7
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,11 @@ func CheckAllOf(...)
291291
endfor
292292
endfunc
293293

294+
" Check if running under Github Actions
295+
command CheckGithubActions call CheckGithubActions()
296+
func CheckGithubActions()
297+
if expand('$GITHUB_ACTIONS') ==# 'true'
298+
throw "Skipped: FIXME: this test doesn't work on Github Actions CI"
299+
endif
300+
endfunc
294301
" vim: shiftwidth=2 sts=2 expandtab

0 commit comments

Comments
 (0)