Skip to content

Commit

Permalink
add several version of editor
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowwa committed Sep 15, 2024
1 parent 326eba3 commit 9e4f8cf
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/vader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,37 @@ jobs:
strategy:
fail-fast: false
matrix:
editor: ["vim", "nvim"]
# bullseye: vim 8.2.2434 neovim 0.4.4
# bookworm: vim 9.0.1378 neovim 0.7.2
# trixie: vim 9.1.0496 neovim 0.9.5
# jammy: vim 8.2.3995 neovim 0.6.1 <- vim version currently used by github action as vim-stable
# mantic: vim 9.0.1672 neovim 0.7.2
# noble: vim 9.1.0016 neovim 0.9.5
# mageia 9: vim 9.1.071 neovim 0.9.5
# mageia cauldron: vim 9.1.0719 neovim 0.10.1
# epuppet detestion added in filetype.vim in vim 8.2.2402
# neovim pulled this epuppet detection in nvim 0.5.0
# filetype detection done with filetype.lua from neovim 0.8.0
# neovim < 0.9.0 segfaut on github action (even the one installed from apt)
editor: ["vim-v8.0.0000", "vim-stable", "vim-v9.1.0719", "nvim-v0.9.0", "nvim-v0.9.5", "nvim-v0.10.1"]

steps:
- uses: actions/checkout@v4
- name: get editor name
env:
EDITORVERSION: ${{matrix.editor}}
id: split
run: |
echo "SELECTEDEDITOR=${EDITORVERSION%%-*}" >> $GITHUB_ENV
echo "SELECTEDVERSION=${EDITORVERSION##*-}" >> $GITHUB_ENV
- name: Setup ${{ matrix.editor }}
uses: rhysd/action-setup-vim@v1
id: vim
with:
neovim: ${{ matrix.editor == 'nvim' }}
neovim: ${{ env.SELECTEDEDITOR == 'nvim' }}
version: ${{ env.SELECTEDVERSION }}
- name: Run Vader unit tests
run: |
TESTVIM=${{ matrix.editor }}
TESTVIM=${{ env.SELECTEDEDITOR }}
export TESTVIM
./test/run-tests.sh

0 comments on commit 9e4f8cf

Please sign in to comment.