File tree Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,10 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- vim :
16
- - ' v8.2.0000'
17
- - ' v8.1.0000'
18
- - ' v8.0.0000'
19
- - ' v7.4'
15
+ cfg :
16
+ - { editor: vim, neovim: false, version: nightly }
17
+ - { editor: vim, neovim: false, version: stable }
18
+ - { editor: neovim, neovim: true, version: stable }
20
19
21
20
steps :
22
21
- name : Checkout code
30
29
- name : Setup Vim
31
30
uses : rhysd/action-setup-vim@v1
32
31
with :
33
- vim_version : ${{ matrix.vim }}
32
+ neovim : ${{ matrix.cfg.neovim }}
33
+ version : ${{ matrix.cfg.version }}
34
34
35
35
- name : Install Dependencies
36
36
run : |
41
41
run : |
42
42
cd test
43
43
vim -esNu vimrc -c 'Vader! *'
44
- if : ${{ always() }}
44
+ if : matrix.cfg.editor == 'vim'
45
+
46
+ - name : Run Test
47
+ run : |
48
+ cd test
49
+ nvim --headless -Nu vimrc -c 'Vader! *'
50
+ env :
51
+ VADER_OUTPUT_FILE : /dev/stderr
52
+ if : matrix.cfg.editor == 'neovim'
Original file line number Diff line number Diff line change @@ -85,12 +85,13 @@ Execute (should return ambiguous usings to Callback):
85
85
call OmniSharpTestInitializeBuffer('FixUsings4')
86
86
call OmniSharpWarmup('OmniSharp#actions#usings#Fix', [])
87
87
let g:OmniSharp_test_locations = []
88
- function! s:Callback (locations)
88
+ function! s:CallbackFixUsings (locations)
89
89
let g:OmniSharp_test_waiting = 0
90
90
let g:OmniSharp_test_locations = a:locations
91
91
endfunction
92
+ let Callback = function('s:CallbackFixUsings')
92
93
let g:OmniSharp_test_waiting = 1
93
- call function('OmniSharp#actions#usings#Fix', [function('s: Callback') ])()
94
+ call function('OmniSharp#actions#usings#Fix', [Callback])()
94
95
let starttime = reltime()
95
96
while g:OmniSharp_test_waiting
96
97
\ && reltime(starttime)[0] < g:OmniSharp_test_timeout
Original file line number Diff line number Diff line change @@ -2,23 +2,24 @@ After():
2
2
call OmniSharpTestCleanupBuffer()
3
3
4
4
Execute (set up async helper):
5
- function! s:Callback (...)
5
+ function! s:CallbackStopWaiting (...)
6
6
let g:OmniSharp_test_waiting = 0
7
7
endfunction
8
8
9
9
function! OmniSharpWarmup(funcname, args) abort
10
10
call OmniSharpTestAwait(a:funcname, a:args, 1)
11
11
endfunction
12
12
13
- function! OmniSharpTestAwait(funcname, args, warmup = 0) abort
13
+ function! OmniSharpTestAwait(funcname, args, ...) abort
14
+ let warmup = a:0 ? a:1 : 0
14
15
let g:OmniSharp_test_waiting = 1
15
- call function(a:funcname, a:args + [function('s:Callback ')])()
16
+ call function(a:funcname, a:args + [function('s:CallbackStopWaiting ')])()
16
17
let starttime = reltime()
17
18
while g:OmniSharp_test_waiting
18
19
\ && reltime(starttime)[0] < g:OmniSharp_test_timeout
19
20
sleep 50m
20
21
endwhile
21
- if !a: warmup
22
+ if !warmup
22
23
Assert !g:OmniSharp_test_waiting, a:funcname . ' timed out'
23
24
endif
24
25
endfunction
You can’t perform that action at this time.
0 commit comments