mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
commit
9031087ff1
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -14,10 +14,6 @@ jobs:
|
||||
rev: nightly/nvim-linux64.tar.gz
|
||||
- os: ubuntu-22.04
|
||||
rev: v0.9.0/nvim-linux64.tar.gz
|
||||
- os: macos-12
|
||||
rev: nightly/nvim-macos.tar.gz
|
||||
- os: macos-12
|
||||
rev: v0.9.0/nvim-macos.tar.gz
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: date +%F > todays-date
|
||||
@ -33,9 +29,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