Skip to content

Commit 9c208b8

Browse files
committed
ci: add dynamic path for plugin testing
1 parent ca22a05 commit 9c208b8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/minit.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ vim.env.LAZY_STDPATH = ".tests"
44

55
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
66

7+
-- Check if running in GitHub Actions
8+
local is_ci = vim.env.GITHUB_ACTIONS ~= nil
9+
10+
local assistant_spec = is_ci and { "A7Lavinraj/assistant.nvim" } -- Use GitHub repo in CI
11+
or { dir = "~/workspace/development/assistant.nvim" } -- Use local path for development
12+
713
require("lazy.minit").setup({
814
spec = {
9-
{ dir = "~/workspace/development/assistant.nvim" },
15+
assistant_spec,
1016
{ "echasnovski/mini.test", lazy = false },
1117
},
1218
})

0 commit comments

Comments
 (0)