Add integration pipeline
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Added woodpecker pipeline for linting and unit testing.
This commit is contained in:
Marty Oehme 2022-01-21 17:55:42 +01:00
parent 6b65c5085f
commit f1059c6581
Signed by: Marty
GPG key ID: B7538B8F50A1C800
3 changed files with 16 additions and 1 deletions

3
.luacheckrc Normal file
View file

@ -0,0 +1,3 @@
globals = {
"vim",
}

12
.woodpecker.yml Normal file
View 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

View file

@ -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
})