mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-11-02 02:17:33 +08:00
Run tests on GitHub Actions with Vim 8.2.0000, the latest Vim, Neovim 0.9.5 and the latest Neovim by rhysd/action-setup-vim. test/run.sh only uses the editors in $VUE_TEST_EDITORS if set, and fails if none runs. Clone the syntax plugins for tests at fixed commits, so changes there don't break tests unexpectedly.
29 lines
722 B
YAML
29 lines
722 B
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: ${{ matrix.neovim && 'nvim' || 'vim' }} ${{ matrix.version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- { neovim: false, version: v8.2.0000 }
|
|
- { neovim: false, version: stable }
|
|
- { neovim: true, version: v0.9.5 }
|
|
- { neovim: true, version: stable }
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: rhysd/action-setup-vim@v1
|
|
with:
|
|
neovim: ${{ matrix.neovim }}
|
|
version: ${{ matrix.version }}
|
|
- name: Run tests
|
|
run: ./test/run.sh
|
|
env:
|
|
VUE_TEST_EDITORS: ${{ matrix.neovim && 'nvim' || 'vim' }}
|