Merge pull request #428 from tris203/cifix

ci: fix ci
This commit is contained in:
ThePrimeagen 2023-12-16 15:40:21 -07:00 committed by GitHub
commit 9031087ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View File

@ -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

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