Skip to content

Commit 5e4df80

Browse files
authored
--no-readline on gha (#1)
1 parent 9d77765 commit 5e4df80

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: test
22
on:
33
pull_request:
44
push:
5+
branches:
6+
- main
57
jobs:
68
test:
79
runs-on: ubuntu-latest
@@ -10,7 +12,7 @@ jobs:
1012
- name: setup lua
1113
run: |
1214
python3 -m pip install hererocks
13-
hererocks -l 5.1 -r 3.5.0 .lua
15+
hererocks -l 5.1 -r 3.5.0 --no-readline .lua
1416
eval $(.lua/bin/luarocks path)
1517
.lua/bin/luarocks install luacheck
1618
.lua/bin/luarocks install busted

spec/export_spec.lua

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
describe('export', function()
22
it('works', function()
33
local globalenv = {
4-
C_Console = {
5-
GetAllCommands = function()
6-
return {
7-
{ command = 'foo' },
8-
{ command = 'bar' },
9-
{ command = 'baz' },
10-
}
11-
end,
12-
},
4+
ConsoleGetAllCommands = function()
5+
return {
6+
{ command = 'foo' },
7+
{ command = 'bar' },
8+
{ command = 'baz' },
9+
}
10+
end,
1311
C_CVar = {
1412
GetCVarDefault = function(arg)
1513
return 'default_' .. arg
1614
end,
1715
},
18-
CreateFrame = function()
19-
return {
20-
RegisterEvent = function() end,
21-
SetScript = function(_, _, script)
22-
script()
23-
end,
24-
}
25-
end,
16+
C_Timer = {
17+
After = function(_, f)
18+
f()
19+
end,
20+
},
2621
GetBuildInfo = function()
2722
return 1, 2, 3, 4
2823
end,

0 commit comments

Comments
 (0)