-
-
Notifications
You must be signed in to change notification settings - Fork 51
142 lines (121 loc) · 3.49 KB
/
tests.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Tests
on:
workflow_dispatch:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test_vim:
name: Vim
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
vim-version: [v8.2.5172, v9.0.1500]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout kkoomen/vim-doge
uses: actions/checkout@v2
- name: Checkout junegunn/vader.vim
uses: actions/checkout@v2
with:
repository: junegunn/vader.vim
path: vader.vim
- name: Cache Cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build (unix)
run: ./scripts/build.sh
shell: bash
- name: Setup vim
uses: rhysd/action-setup-vim@v1
id: vim
with:
version: ${{ matrix.vim-version }}
neovim: false
- name: Run tests
run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
shell: bash
test_old_vim:
name: Vim
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-11]
# Building older versions of Vim requires v8.2.1118 or less
vim-version: [v7.4.2119, v8.2.1118]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout kkoomen/vim-doge
uses: actions/checkout@v2
- name: Checkout junegunn/vader.vim
uses: actions/checkout@v2
with:
repository: junegunn/vader.vim
path: vader.vim
- name: Cache Cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build (unix)
run: ./scripts/build.sh
shell: bash
- name: Setup vim
uses: rhysd/action-setup-vim@v1
id: vim
with:
version: ${{ matrix.vim-version }}
neovim: false
configure-args: |
--with-features=huge --enable-fail-if-missing --disable-nls
- name: Run tests
run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
shell: bash
test_neovim:
name: Neovim
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
vim-version: [v0.3.2, stable]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout kkoomen/vim-doge
uses: actions/checkout@v2
- name: Checkout junegunn/vader.vim
uses: actions/checkout@v2
with:
repository: junegunn/vader.vim
path: vader.vim
- name: Cache Cargo dependencies
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build (unix)
run: ./scripts/build.sh
shell: bash
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
id: vim
with:
version: ${{ matrix.vim-version }}
neovim: true
- name: Run tests
run: ./scripts/run-vader-tests.sh "${{ steps.vim.outputs.executable }}"
shell: bash
vint:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
# https://github.com/Vimjas/vint/issues/329#issuecomment-1029628054
- run: pip install git+https://github.com/Vimjas/vint.git
- run: vint -s ./autoload ./plugin