Add integration pipeline
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Added woodpecker pipeline for linting and unit testing.
This commit is contained in:
parent
6b65c5085f
commit
f1059c6581
3 changed files with 16 additions and 1 deletions
3
.luacheckrc
Normal file
3
.luacheckrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
globals = {
|
||||
"vim",
|
||||
}
|
12
.woodpecker.yml
Normal file
12
.woodpecker.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
# branches: main
|
||||
|
||||
pipeline:
|
||||
code_lint:
|
||||
image: pipelinecomponents/luacheck
|
||||
commands:
|
||||
- luacheck lua/zettelkasten
|
||||
|
||||
unit_tests:
|
||||
image: imega/busted
|
||||
commands:
|
||||
- busted test -C lua
|
|
@ -91,7 +91,7 @@ describe("get_all_files", function()
|
|||
end,
|
||||
fs_scandir_next = function()
|
||||
if #files == 0 then return nil end
|
||||
local fname, ftype = table.unpack(table.remove(files))
|
||||
local fname, ftype = unpack(table.remove(files))
|
||||
return fname, ftype
|
||||
end
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue