Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,21 @@ on:
jobs:
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
editor: [vim, neovim]
steps:
- uses: actions/checkout@v4
- name: vint
uses: reviewdog/action-vint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: rhysd/action-setup-vim@v1
id: vim
with:
neovim: ${{ matrix.editor == 'neovim' }}
version: stable
- name: test
env:
VIM: ${{ steps.vim.outputs.executable }}
run: make test
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
VIM ?= vim
VIM_FLAGS ?= --clean -u vimrc
ifeq ($(VIM),vim)
ifeq ($(notdir $(VIM)),vim)
VIM_FLAGS += -N -Es
else ifeq ($(VIM),nvim)
else ifeq ($(notdir $(VIM)),nvim)
VIM_FLAGS += --headless
endif

Expand All @@ -15,6 +15,8 @@ clean:

.PHONY: test
test: test/vader.vim
@echo Running tests against $(VIM) $(VIM_FLAGS)
@echo
@cd test && $(VIM) $(VIM_FLAGS) -c 'Vader! symlink.vader'
@cd test && $(VIM) $(VIM_FLAGS) -R -c 'Vader! symlink.vader'
@cd test && $(VIM) $(VIM_FLAGS) -c 'Vader! symlink-edit-in-popup.vader'
Expand Down