mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
name: Neovim
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
neovim_version:
|
|
- "head"
|
|
- "v0.11.2"
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
TESTS_ENABLE_TREESITTER: 1
|
|
steps:
|
|
- uses: "actions/checkout@v2"
|
|
- uses: tree-sitter/setup-action@v2
|
|
with:
|
|
install-lib: false
|
|
|
|
- name: Install vader.vim
|
|
run: git clone --depth=1 https://github.com/junegunn/vader.vim.git test/vader/vader.vim
|
|
|
|
- name: "setup Neovim"
|
|
uses: "thinca/action-setup-vim@v2"
|
|
with:
|
|
vim_version: "${{ matrix.neovim_version }}"
|
|
vim_type: "Neovim"
|
|
|
|
- name: "Show version"
|
|
run: nvim --version
|
|
|
|
- name: Clone tree-sitter-python
|
|
run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-python.git
|
|
working-directory: /tmp
|
|
|
|
- name: Clone tree-sitter-ruby
|
|
run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-ruby.git
|
|
working-directory: /tmp
|
|
|
|
- name: Create default nvim runtime parser directory
|
|
run: mkdir -p $HOME/.local/share/nvim/site/parser
|
|
|
|
- name: Build tree-sitter-python
|
|
run: tree-sitter build -o $HOME/.local/share/nvim/site/parser/python.so
|
|
working-directory: /tmp/tree-sitter-python
|
|
|
|
- name: Build tree-sitter-ruby
|
|
run: tree-sitter build -o $HOME/.local/share/nvim/site/parser/ruby.so
|
|
working-directory: /tmp/tree-sitter-ruby
|
|
|
|
- name: "Run test"
|
|
run: |
|
|
bash -c 'VIMCMD=nvim test/vader/run'
|
|
|
|
- name: "Run new tests"
|
|
run: |
|
|
cd ./test/new && make -j1 && make -j1 coverage
|