From c62eaf944b296fd640d59b468bae7e1147200146 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Wed, 23 Oct 2019 14:19:44 +0300 Subject: [PATCH] Test for basic functionality in (n)vim using CI job --- .github/workflows/check.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..8ae81b7 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,33 @@ +name: Check + +on: [push, pull_request] + +jobs: + check: + strategy: + fail-fast: false + matrix: + vimFlavor: ["vim", "nvim"] + tagsProvider: ["exuberant-ctags", "universal-tags"] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Install ${{ matrix.tagsProvider }} + run: | + case ${{ matrix.tagsProvider }} in + exuberant-*) sudo apt-get install ctags ;; + universal-*) sudo snap install universal-ctags ;; + esac + - name: Install ${{ matrix.vimFlavor }} + if: matrix.vimFlavor == 'nvim' + run: | + sudo add-apt-repository ppa:neovim-ppa/unstable + sudo apt-get update + sudo apt-get install neovim + - name: Review ctags version + run: ctags --version + - name: Review ${{ matrix.vimFlavor }} version + run: ${{ matrix.vimFlavor }} --version + - name: Load plugin and try OpenWindow() + run: ${{ matrix.vimFlavor }} -i NONE "+set rtp+=$(pwd)" "+call tagbar#OpenWindow() | q" "+cq" plugin/tagbar.vim