ci: Test on unreleased NeoVIM development builds (#193)

fix-tmux-next-3dot4
Caleb Maclennan 3 years ago committed by GitHub
parent 96a47f7895
commit ee3075ad30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,23 +5,27 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
ubuntuFlavor: ["18.04", "20.04"] osFlavor: [ubuntu-20.04, ubuntu-18.04]
vimFlavor: ["vim", "nvim"] vimFlavor: [neovim, vim]
runs-on: ubuntu-${{ matrix.ubuntuFlavor }} vimVersion: [stable, unstable]
exclude:
- vimFlavor: vim
vimVersion: unstable
runs-on: ${{ matrix.osFlavor }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Enable Universe package repository - name: Enable Universe package repository
run: | run: |
sudo add-apt-repository universe sudo add-apt-repository ${{ matrix.vimVersion == 'stable' && 'universe' || 'ppa:neovim-ppa/unstable' }}
sudo apt-get update sudo apt-get update
- name: Install tmux and ${{ matrix.vimFlavor }} - name: Install tmux and ${{ matrix.vimFlavor }}
run: | run: |
sudo apt-get install tmux ${{ matrix.vimFlavor == 'nvim' && 'neovim' || 'vim' }} sudo apt-get install tmux ${{ matrix.vimFlavor }}
- name: Review versions - name: Review versions
run: | run: |
tmux -V tmux -V
${{ matrix.vimFlavor }} --version ${{ matrix.vimFlavor == 'neovim' && 'nvim' || 'vim' }} --version
# This tests looks for two thigs: # This tests looks for two thigs:
# * That VIM doesn't hang. If it succedes it will quit quickly. If 5 # * That VIM doesn't hang. If it succedes it will quit quickly. If 5
# seconds later the tmux session is still running either the runner pane # seconds later the tmux session is still running either the runner pane
@ -33,7 +37,7 @@ jobs:
- name: "Try Vimux" - name: "Try Vimux"
run: | run: |
ec="$(mktemp)" ec="$(mktemp)"
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'" 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'"
sleep 5 sleep 5
tmux kill-session -t ci && exit 1 tmux kill-session -t ci && exit 1
exit "$(cat $ec)" exit "$(cat $ec)"

Loading…
Cancel
Save