ci: update test scripts

This commit is contained in:
Folke Lemaitre
2025-10-08 21:26:13 +02:00
parent b9d38f6920
commit c220e04cd6
4 changed files with 28 additions and 24 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/env bash
#!/usr/bin/env bash
nvim -l tests/minit.lua --minitest
nvim -l tests/minit.lua --minitest "$@"

View File

@@ -1,7 +1,13 @@
#!/usr/bin/env -S nvim -l
vim.env.LAZY_STDPATH = ".tests"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
vim.env.LAZY_PATH = vim.fs.normalize("~/projects/lazy.nvim")
if vim.fn.isdirectory(vim.env.LAZY_PATH) then
loadfile(vim.env.LAZY_PATH .. "/bootstrap.lua")()
else
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"), "bootstrap.lua")()
end
-- Setup lazy.nvim
require("lazy.minit").setup({

View File

@@ -1,21 +0,0 @@
[selene]
base = "lua51"
name = "vim"
[vim]
any = true
[jit]
any = true
[assert]
any = true
[describe]
any = true
[it]
any = true
[before_each.args]
any = true

19
vim.yml Normal file
View File

@@ -0,0 +1,19 @@
base: lua51
lua_versions:
- luajit
globals:
Snacks:
any: true
vim:
any: true
jit:
any: true
assert:
any: true
describe:
any: true
it:
any: true
before_each:
any: true