aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-11-22 14:41:55 -0500
committerJames McCoy <jamessan@jamessan.com>2020-11-22 14:41:55 -0500
commit4ad7092abf982398c55ae96e1990f6e9fd9892bb (patch)
treea77a1fe6dab6da6daaa6ed0583dab36eae39b8c5 /test/helpers.lua
parent7dfeadb0fcbcedeafc357e60f0b7b2b8916afeaf (diff)
downloadrneovim-4ad7092abf982398c55ae96e1990f6e9fd9892bb.tar.gz
rneovim-4ad7092abf982398c55ae96e1990f6e9fd9892bb.tar.bz2
rneovim-4ad7092abf982398c55ae96e1990f6e9fd9892bb.zip
test: Add GitHub actions support to helpers.isCI
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 84148dc1a8..8dbd82cb8c 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -777,11 +777,12 @@ end
function module.isCI(name)
local any = (name == nil)
- assert(any or name == 'appveyor' or name == 'travis' or name == 'sourcehut')
+ assert(any or name == 'appveyor' or name == 'travis' or name == 'sourcehut' or name == 'github')
local av = ((any or name == 'appveyor') and nil ~= os.getenv('APPVEYOR'))
local tr = ((any or name == 'travis') and nil ~= os.getenv('TRAVIS'))
local sh = ((any or name == 'sourcehut') and nil ~= os.getenv('SOURCEHUT'))
- return tr or av or sh
+ local gh = ((any or name == 'github') and nil ~= os.getenv('GITHUB_ACTIONS'))
+ return tr or av or sh or gh
end