[add] github actions

This commit is contained in:
kazukazuinaina
2020-02-16 11:15:48 +09:00
parent 68369952a3
commit b48cb086c3
2 changed files with 75 additions and 0 deletions

37
.github/workflows/neovim.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Neovim
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
vim_type: ['Neovim']
neovim_version:
- 'head'
- 'stable'
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@v2'
- 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@v1'
with:
vim_version: '${{ matrix.neovim_version }}'
vim_type: '${{ matrix.vim_type }}'
- name: 'Show version'
run: nvim --version
- name: 'Run test'
run: |
bash -c 'VIMCMD=nvim test/vader/run'

38
.github/workflows/vim.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Vim
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
vim_type: ['Vim']
vim_version:
- 'head'
- 'v8.0.1575'
- 'v7.4.2273'
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@v2'
- name: Install vader.vim
run: git clone --depth=1 https://github.com/junegunn/vader.vim.git test/vader/vader.vim
- name: 'setup Vim'
uses: 'thinca/action-setup-vim@v1'
with:
vim_version: '${{ matrix.vim_version }}'
vim_type: '${{ matrix.vim_type }}'
- name: 'Show version'
run: vim --version
- name: 'Run test'
run: |
bash ./test/vader/run