ci: fix ci

This commit is contained in:
tris203 2023-12-16 19:10:13 +00:00
parent 8f67088e9d
commit b63cfdd50b
4 changed files with 10 additions and 3 deletions

View File

@ -33,9 +33,12 @@ jobs:
mkdir -p _neovim
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
}
- name: Dependencies
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s "$(pwd)" ~/.local/share/nvim/site/pack/vendor/start
- name: Run tests
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
export VIM="${PWD}/_neovim/share/nvim/runtime"
nvim --version
make test

View File

@ -11,7 +11,7 @@ jobs:
- name: Setup
run: |
sudo apt-get update
sudo apt-get install luarocks
sudo apt-get install luarocks -y
sudo luarocks install luacheck
- name: Lint

View File

@ -8,6 +8,7 @@ lint:
test:
echo "===> Testing"
nvim --headless -c "PlenaryBustedDirectory lua/harpoon/test"
nvim --headless --noplugin -u scripts/tests/minimal.vim \
-c "PlenaryBustedDirectory lua/harpoon/test/ {minimal_init = 'scripts/tests/minimal.vim'}"
pr-ready: fmt lint test

View File

@ -0,0 +1,3 @@
set rtp+=.
set rtp+=../plenary.nvim
runtime! plugin/plenary.vim