Skip to content

Commit 5e2a0b7

Browse files
committed
ci: update test scripts
1 parent 904308e commit 5e2a0b7

4 files changed

Lines changed: 27 additions & 24 deletions

File tree

scripts/test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/env bash
1+
#!/usr/bin/env bash
22

3-
nvim -l tests/minit.lua --minitest
3+
nvim -l tests/minit.lua --minitest "$@"

tests/minit.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
vim.env.LAZY_STDPATH = ".tests"
44
vim.env.LAZY_PATH = vim.fs.normalize("~/projects/lazy.nvim")
5-
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
5+
6+
if vim.fn.isdirectory(vim.env.LAZY_PATH) then
7+
loadfile(vim.env.LAZY_PATH .. "/bootstrap.lua")()
8+
else
9+
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"), "bootstrap.lua")()
10+
end
611

712
-- Setup lazy.nvim
813
require("lazy.minit").setup({

vim.toml

Lines changed: 0 additions & 21 deletions
This file was deleted.

vim.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
base: lua51
2+
lua_versions:
3+
- luajit
4+
5+
globals:
6+
Snacks:
7+
any: true
8+
vim:
9+
any: true
10+
jit:
11+
any: true
12+
assert:
13+
any: true
14+
describe:
15+
any: true
16+
it:
17+
any: true
18+
before_each:
19+
any: true

0 commit comments

Comments
 (0)