diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..c8a3f4e --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,3 @@ +globals = { + "vim", +} diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..2f9a185 --- /dev/null +++ b/.woodpecker.yml @@ -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 diff --git a/lua/test/files_spec.lua b/lua/test/files_spec.lua index c5874a6..a627843 100644 --- a/lua/test/files_spec.lua +++ b/lua/test/files_spec.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 })