mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +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
|
mkdir -p _neovim
|
||||||
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_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
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
export PATH="${PWD}/_neovim/bin:${PATH}"
|
export PATH="${PWD}/_neovim/bin:${PATH}"
|
||||||
export VIM="${PWD}/_neovim/share/nvim/runtime"
|
|
||||||
nvim --version
|
nvim --version
|
||||||
make test
|
make test
|
||||||
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
- name: Setup
|
- name: Setup
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install luarocks
|
sudo apt-get install luarocks -y
|
||||||
sudo luarocks install luacheck
|
sudo luarocks install luacheck
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
|
3
Makefile
3
Makefile
@ -8,6 +8,7 @@ lint:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
echo "===> Testing"
|
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
|
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