Skip to content

Commit 20d464c

Browse files
committed
Add checks with Neovim to CI
Currently allowed to fail, since there are some script incompatibilities.
1 parent 0554b31 commit 20d464c

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,22 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10+
strategy:
11+
matrix:
12+
vim: [vim, nvim]
13+
1014
steps:
1115
- uses: actions/checkout@v1
1216
- name: Install Vim
13-
run: sudo add-apt-repository -yu ppa:jonathonf/vim && sudo apt-get install -qq vim
17+
run: |
18+
case ${{ matrix.vim }} in
19+
vim)
20+
sudo add-apt-repository -yu ppa:jonathonf/vim && sudo apt-get install -qq vim
21+
;;
22+
nvim)
23+
curl -L https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz | tar xz && echo "::add-path::$PWD/nvim-linux64/bin"
24+
;;
25+
esac
1426
- name: Run tests
15-
run: make check
27+
run: make check VIM=${{ matrix.vim }}
28+
continue-on-error: ${{ matrix.vim == 'nvim' }}

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
VIM = vim
2+
3+
ifeq ($(VIM),vim)
4+
args = --not-a-term
5+
else ifeq ($(VIM),nvim)
6+
args = --headless
7+
endif
8+
19
all: check
210

311
check:
4-
vim --clean --not-a-term -u runtest.vim
12+
$(VIM) --clean $(args) -u runtest.vim
513

614
.PHONY: all check

0 commit comments

Comments
 (0)