mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
ci: fix ci
This commit is contained in:
parent
8f67088e9d
commit
b63cfdd50b
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
3
Makefile
3
Makefile
@ -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
|
||||
|
3
scripts/tests/minimal.vim
Normal file
3
scripts/tests/minimal.vim
Normal file
@ -0,0 +1,3 @@
|
||||
set rtp+=.
|
||||
set rtp+=../plenary.nvim
|
||||
runtime! plugin/plenary.vim
|
Loading…
x
Reference in New Issue
Block a user