chore(ci): install all deps explicitly

This commit is contained in:
Oleksandr Smirnov 2025-02-28 14:45:34 +02:00
parent 0924937768
commit 294da43421
No known key found for this signature in database
2 changed files with 11 additions and 2 deletions

View file

@ -47,7 +47,11 @@ jobs:
key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }} key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }}
- name: Install Go bins - name: Install Go bins
run: nvim --headless -u "./scripts/minimal_init.lua" -c "GoInstallDeps" -c "qa!" run: |
go install github.com/fatih/gomodifytags@latest
go install github.com/josharian/impl@latest
go install github.com/cweill/gotests/...@latest
go install github.com/koron/iferr@latest
- name: Run Tests - name: Run Tests
run: | run: |

View file

@ -33,11 +33,16 @@ vim.env.XDG_CACHE_HOME = root ".tests/cache"
vim.cmd [[set runtimepath=$VIMRUNTIME]] vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.opt.runtimepath:append(root()) vim.opt.runtimepath:append(root())
vim.opt.packpath = { root ".tests/site" } vim.opt.packpath = { root ".tests/site" }
vim.notify = print vim.notify = vim.print
-- install go treesitter parse -- install go treesitter parse
require("nvim-treesitter.install").ensure_installed_sync "go" require("nvim-treesitter.install").ensure_installed_sync "go"
require("gopher").setup {
log_level = vim.log.levels.OFF,
timeout = 4000,
}
-- setup mini.test only when running headless nvim -- setup mini.test only when running headless nvim
if #vim.api.nvim_list_uis() == 0 then if #vim.api.nvim_list_uis() == 0 then
require("mini.test").setup { require("mini.test").setup {