mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: Add GitHub actions support to helpers.isCI
This commit is contained in:
parent
7dfeadb0fc
commit
4ad7092abf
@ -777,11 +777,12 @@ end
|
|||||||
|
|
||||||
function module.isCI(name)
|
function module.isCI(name)
|
||||||
local any = (name == nil)
|
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 av = ((any or name == 'appveyor') and nil ~= os.getenv('APPVEYOR'))
|
||||||
local tr = ((any or name == 'travis') and nil ~= os.getenv('TRAVIS'))
|
local tr = ((any or name == 'travis') and nil ~= os.getenv('TRAVIS'))
|
||||||
local sh = ((any or name == 'sourcehut') and nil ~= os.getenv('SOURCEHUT'))
|
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
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user