mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-11 09:52:31 +00:00
ci: make simple test script
This commit is contained in:
parent
e3e431480d
commit
79bcc02d17
3 changed files with 5 additions and 4 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
nvim --version
|
nvim --version
|
||||||
[ ! -d tests ] && exit 0
|
[ ! -d tests ] && exit 0
|
||||||
nvim -l tests/busted.lua tests -o utfTerminal
|
./tests/run
|
||||||
community:
|
community:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -11,9 +11,7 @@ local Util = require("lazy.util")
|
||||||
local Text = {}
|
local Text = {}
|
||||||
|
|
||||||
function Text.new()
|
function Text.new()
|
||||||
local self = setmetatable({}, {
|
local self = setmetatable({}, { __index = Text })
|
||||||
__index = Text,
|
|
||||||
})
|
|
||||||
self._lines = {}
|
self._lines = {}
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
3
tests/run
Executable file
3
tests/run
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
nvim -l tests/busted.lua tests -o utfTerminal
|
Loading…
Add table
Reference in a new issue