ci: make simple test script

This commit is contained in:
Folke Lemaitre 2024-06-27 12:48:50 +02:00
parent e3e431480d
commit 79bcc02d17
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
3 changed files with 5 additions and 4 deletions

View File

@ -25,7 +25,7 @@ jobs:
run: |
nvim --version
[ ! -d tests ] && exit 0
nvim -l tests/busted.lua tests -o utfTerminal
./tests/run
community:
runs-on: ubuntu-latest
steps:

View File

@ -11,9 +11,7 @@ local Util = require("lazy.util")
local Text = {}
function Text.new()
local self = setmetatable({}, {
__index = Text,
})
local self = setmetatable({}, { __index = Text })
self._lines = {}
return self

3
tests/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
nvim -l tests/busted.lua tests -o utfTerminal