test.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ---
  2. name: Test vim-plug
  3. on:
  4. push:
  5. branches: [master, devel]
  6. pull_request:
  7. branches: [master]
  8. workflow_dispatch:
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. vim:
  15. - vim
  16. # FIXME: (core dumped) https://github.com/junegunn/vim-plug/runs/4422576984?check_suite_focus=true#step:3:238
  17. # - neovim-stable
  18. # - neovim-unstable
  19. steps:
  20. - uses: actions/checkout@v2
  21. with:
  22. fetch-depth: 0
  23. - name: Install packages and test
  24. env:
  25. ENV: ${{ matrix.vim }}
  26. run: |
  27. export DEPS=~/deps
  28. export PATH=~/deps/bin:$PATH
  29. git config --global user.email "you@example.com"
  30. git config --global user.name "Your Name"
  31. case "$ENV" in
  32. vim)
  33. sudo apt-get install vim
  34. ;;
  35. neovim-*)
  36. sudo add-apt-repository ppa:neovim-ppa/${ENV/neovim-/}
  37. sudo apt-get update
  38. sudo apt-get install neovim
  39. mkdir -p $DEPS/bin
  40. echo 'nvim "$@"' > $DEPS/bin/vim
  41. chmod +x $DEPS/bin/vim
  42. export VADER_OUTPUT_FILE=/dev/stderr
  43. ;;
  44. esac
  45. test/run !