Skip to content

Commit

Permalink
WIP + rebase [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Jan 10, 2025
1 parent 88fd88d commit 50e2e30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,14 @@ jobs:
with:
path: _neovim
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
- name: Install test dependencies
run: |
git clone --depth 1 https://github.com/MisanthropicBit/neotest-busted ~/.local/share/nvim/site/pack/start/neotest-busted
git clone --depth 1 https://github.com/nvim-neotest/neotest ~/.local/share/nvim/site/pack/start/neotest
git clone --depth 1 https://github.com/nvim-neotest/nvim-nio ~/.local/share/nvim/site/pack/start/nvim-nio
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/start/plenary.nvim
ln -s "$(pwd)" ~/.local/share/nvim/site/pack/start
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim_version }}
- name: Run tests
if: ${{ matrix.neovim_version != 'v0.8.0' }}
run: nvim -l ~/.local/share/nvim/site/pack/start/neotest-busted/scripts/test-runner.lua
if: ${{ matrix.neovim_version == 'v0.8.0' }}
run: nvim -u NONE -i NONE -n --headless -c 'source ~/.local/share/nvim/site/pack/start/neotest-busted/scripts/test-runner.lua' -c quitall
- uses: leafo/gh-actions-luarocks@v4.0.0
run: |
luarocks init
luarocks config --scope project lua_version 5.1
luarocks test
3 changes: 2 additions & 1 deletion tests/minimal_init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vim.opt.rtp:append(".")
vim.opt.rtp:append("~/.vim-plug/plenary.nvim")
vim.opt.rtp:append("./lua_modules/lua/plenary.nvim")

vim.cmd.runtime({ "plugin/plenary.vim", bang = true })
8 changes: 6 additions & 2 deletions winmove.nvim-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ build = {
},
}

test_dependencies = {
"busted >= 2.2.0",
"neotest-busted >= 0.3.0",
}

test = {
type = "command",
command = "./tests/run_tests.sh",
type = "busted",
}

0 comments on commit 50e2e30

Please sign in to comment.