Skip to content

Commit ee3075a

Browse files
authored
ci: Test on unreleased NeoVIM development builds (#193)
1 parent 96a47f7 commit ee3075a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/check.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,27 @@ jobs:
55
strategy:
66
fail-fast: false
77
matrix:
8-
ubuntuFlavor: ["18.04", "20.04"]
9-
vimFlavor: ["vim", "nvim"]
10-
runs-on: ubuntu-${{ matrix.ubuntuFlavor }}
8+
osFlavor: [ubuntu-20.04, ubuntu-18.04]
9+
vimFlavor: [neovim, vim]
10+
vimVersion: [stable, unstable]
11+
exclude:
12+
- vimFlavor: vim
13+
vimVersion: unstable
14+
runs-on: ${{ matrix.osFlavor }}
1115
steps:
1216
- name: Checkout
1317
uses: actions/checkout@v2
1418
- name: Enable Universe package repository
1519
run: |
16-
sudo add-apt-repository universe
20+
sudo add-apt-repository ${{ matrix.vimVersion == 'stable' && 'universe' || 'ppa:neovim-ppa/unstable' }}
1721
sudo apt-get update
1822
- name: Install tmux and ${{ matrix.vimFlavor }}
1923
run: |
20-
sudo apt-get install tmux ${{ matrix.vimFlavor == 'nvim' && 'neovim' || 'vim' }}
24+
sudo apt-get install tmux ${{ matrix.vimFlavor }}
2125
- name: Review versions
2226
run: |
2327
tmux -V
24-
${{ matrix.vimFlavor }} --version
28+
${{ matrix.vimFlavor == 'neovim' && 'nvim' || 'vim' }} --version
2529
# This tests looks for two thigs:
2630
# * That VIM doesn't hang. If it succedes it will quit quickly. If 5
2731
# seconds later the tmux session is still running either the runner pane
@@ -33,7 +37,7 @@ jobs:
3337
- name: "Try Vimux"
3438
run: |
3539
ec="$(mktemp)"
36-
tmux new -s ci -d "${{ matrix.vimFlavor == 'nvim' && 'nvim -u /dev/null --headless' || 'vim' }} -i NONE \"+so plugin/vimux.vim\" \"+VimuxRunCommand('date')\" \"+VimuxCloseRunner | qa\"; echo \$? > '$ec'"
40+
tmux new -s ci -d "${{ matrix.vimFlavor == 'neovim' && 'nvim -u /dev/null --headless' || 'vim' }} -i NONE \"+so plugin/vimux.vim\" \"+VimuxRunCommand('date')\" \"+VimuxCloseRunner | qa\"; echo \$? > '$ec'"
3741
sleep 5
3842
tmux kill-session -t ci && exit 1
3943
exit "$(cat $ec)"

0 commit comments

Comments
 (0)