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: | 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:

View File

@ -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
View File

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