Skip to content

Commit 6f14ef4

Browse files
committed
patch 9.1.1089: tests: No check when tests are run under Github actions
Problem: tests: No check when tests are run under Github actions Solution: Add the CheckGithubActions check command and skip test if needed related: #16599 related: actions/runner-images#11512 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 934d9ab commit 6f14ef4

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/testdir/check.vim

Lines changed: 7 additions & 0 deletions
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

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1089,
707709
/**/
708710
1088,
709711
/**/

0 commit comments

Comments
 (0)