From 79bcc02d17edf026065bc4313e13363f1717f2d4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 27 Jun 2024 12:48:50 +0200 Subject: [PATCH] ci: make simple test script --- .github/workflows/ci.yml | 2 +- lua/lazy/view/text.lua | 4 +--- tests/run | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100755 tests/run diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 647365c..d1f514d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/lua/lazy/view/text.lua b/lua/lazy/view/text.lua index 3e83d5a..6a664a3 100644 --- a/lua/lazy/view/text.lua +++ b/lua/lazy/view/text.lua @@ -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 diff --git a/tests/run b/tests/run new file mode 100755 index 0000000..7c8bb34 --- /dev/null +++ b/tests/run @@ -0,0 +1,3 @@ +#!/bin/sh + +nvim -l tests/busted.lua tests -o utfTerminal