-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (49 loc) · 1.27 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "test status"
on:
- "push"
jobs:
test:
runs-on: "ubuntu-latest"
strategy:
matrix:
include:
- vim_type: "vim"
vim_version: "v8.0.1850"
- vim_type: "vim"
vim_version: "head"
- vim_type: "neovim"
vim_version: "head"
steps:
- name: "checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 1
- id: "vim"
name: "install ${{ matrix.vim_type }}"
uses: "thinca/action-setup-vim@v1"
with:
vim_version: "${{ matrix.vim_version }}"
vim_type: "${{ matrix.vim_type }}"
download: "available"
- name: "install ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.0"
bundler-cache: true
- name: "run tests"
env:
VSPEC_VIM: "${{ steps.vim.outputs.executable }}"
run: "bundle exec vim-flavor test"
lint:
runs-on: "ubuntu-latest"
steps:
- name: "checkout"
uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.x"
- name: "run vint"
run: |
sudo python3 -m pip install vim-vint
rm -rf t/
vint --color plugin autoload legacy