0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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>
This commit is contained in:
Christian Brabandt
2025-02-09 17:05:21 +01:00
parent 934d9ab3a2
commit 6f14ef4b0b
2 changed files with 9 additions and 0 deletions

View File

@@ -291,4 +291,11 @@ func CheckAllOf(...)
endfor
endfunc
" Check if running under Github Actions
command CheckGithubActions call CheckGithubActions()
func CheckGithubActions()
if expand('$GITHUB_ACTIONS') ==# 'true'
throw "Skipped: FIXME: this test doesn't work on Github Actions CI"
endif
endfunc
" vim: shiftwidth=2 sts=2 expandtab

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1089,
/**/
1088,
/**/