]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1089: tests: No check when tests are run under Github actions v9.1.1089
authorChristian Brabandt <cb@256bit.org>
Sun, 9 Feb 2025 16:05:21 +0000 (17:05 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 9 Feb 2025 16:05:21 +0000 (17:05 +0100)
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>
src/testdir/check.vim
src/version.c

index e67d39ad22df6a7e0eecaf59c7dcebe7496e99a3..a60dd908506bdf958c86b60c97986e57da7a64bf 100644 (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
index 7d509361c4bb21f95a526da54deef9ee0ed98f6d..28234de1a7ea523833ae2cc5644b886039db0a1d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1089,
 /**/
     1088,
 /**/