mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Fix example file skipping too much in CI
This commit is contained in:
parent
a9e3676d31
commit
b6822e603e
1 changed files with 36 additions and 39 deletions
|
@ -83,13 +83,9 @@ for _, entry in entries do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- NOTE: We skip the last example in GitHub Actions
|
-- NOTE: We skip the ping example in GitHub Actions
|
||||||
-- since the ping command does not work in azure
|
-- since the ping command does not work in azure
|
||||||
if process.getEnvVar("GITHUB_ACTIONS") then
|
if not process.getEnvVar("GITHUB_ACTIONS") then
|
||||||
print("\nGoodbye, lune! 🌙")
|
|
||||||
process.exit(0)
|
|
||||||
end
|
|
||||||
|
|
||||||
--[==[
|
--[==[
|
||||||
EXAMPLE #5
|
EXAMPLE #5
|
||||||
|
|
||||||
|
@ -130,6 +126,7 @@ else
|
||||||
print(result.stderr)
|
print(result.stderr)
|
||||||
process.exit(result.code)
|
process.exit(result.code)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--[==[
|
--[==[
|
||||||
EXAMPLE #7
|
EXAMPLE #7
|
||||||
|
@ -149,7 +146,7 @@ local apiResult = net.request({
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
if not result.ok then
|
if not apiResult.ok then
|
||||||
print("\nFailed to send network request!")
|
print("\nFailed to send network request!")
|
||||||
print(string.format("%d (%s)", apiResult.statusCode, apiResult.statusMessage))
|
print(string.format("%d (%s)", apiResult.statusCode, apiResult.statusMessage))
|
||||||
print(apiResult.body)
|
print(apiResult.body)
|
||||||
|
|
Loading…
Reference in a new issue