@@ -2,10 +2,7 @@ name: Test
2
2
3
3
env :
4
4
DENOPS_PATH : " ../denops.vim"
5
-
6
- defaults :
7
- run :
8
- shell : bash --noprofile --norc -eo pipefail {0}
5
+ DENO_DIR : " .deno"
9
6
10
7
on :
11
8
schedule :
16
13
paths :
17
14
- " **/*.md"
18
15
- " **/*.ts"
19
- - " denops_std/modules-lock.json"
20
16
- " .github/workflows/test.yml"
21
17
pull_request :
22
- branches :
23
- - main
24
18
paths :
25
19
- " **/*.md"
26
20
- " **/*.ts"
27
- - " denops_std/modules-lock.json"
28
21
- " .github/workflows/test.yml"
29
22
23
+ defaults :
24
+ run :
25
+ shell : bash --noprofile --norc -eo pipefail {0}
26
+
30
27
jobs :
31
28
check :
32
29
strategy :
41
38
- run : git config --global core.autocrlf false
42
39
if : runner.os == 'Windows'
43
40
- uses : actions/checkout@v2
44
- - uses : denoland/setup-deno@main
41
+ - uses : denoland/setup-deno@v1
45
42
with :
46
43
deno-version : " ${{ matrix.version }}"
44
+ - uses : actions/cache@v2
45
+ with :
46
+ path : ${{ env.DENO_DIR }}
47
+ key : ${{ runner.os }}-deno-${{ matrix.version }}-${{ hashFiles('**/*.ts') }}
48
+ restore-keys : |
49
+ ${{ runner.os }}-deno-${{ matrix.version }}-
50
+ ${{ runner.os }}-deno-
47
51
- name : Lint check
48
52
run : make lint
49
53
- name : Format check
66
70
nvim : " v0.4.4"
67
71
- vim : " v8.2.3081"
68
72
nvim : " v0.5.0"
69
- include :
70
- - runner : windows-latest
71
- version : 1.11.0
72
- host_version :
73
- vim : v8.2.0671 # Instead of v8.2.0662
74
- nvim : v0.4.4
75
- - runner : windows-latest
76
- version : 1.x
77
- host_version :
78
- vim : v8.2.0671 # Instead of v8.2.0662
79
- nvim : v0.4.4
80
- exclude :
81
- - runner : windows-latest
82
- version : 1.11.0
83
- host_version :
84
- vim : v8.2.0662 # Not found on vim-win32-installer
85
- nvim : v0.4.4
86
- - runner : windows-latest
87
- version : 1.x
88
- host_version :
89
- vim : v8.2.0662 # Not found on vim-win32-installer
90
- nvim : v0.4.4
91
73
runs-on : ${{ matrix.runner }}
92
74
steps :
93
75
- run : git config --global core.autocrlf false
@@ -99,38 +81,44 @@ jobs:
99
81
with :
100
82
repository : " vim-denops/denops.vim"
101
83
path : " ./denops.vim"
102
- - uses : denoland/setup-deno@main
84
+ - uses : denoland/setup-deno@v1
103
85
with :
104
86
deno-version : " ${{ matrix.version }}"
105
- - uses : rhysd/action-setup-vim@v1
87
+ - uses : actions/cache@v2
88
+ id : cache
89
+ with :
90
+ path : ${{ env.DENO_DIR }}
91
+ key : ${{ runner.os }}-deno-${{ matrix.version }}-${{ hashFiles('**/*.ts') }}
92
+ restore-keys : |
93
+ ${{ runner.os }}-deno-${{ matrix.version }}-
94
+ ${{ runner.os }}-deno-
95
+ - uses : thinca/action-setup-vim@v1
106
96
id : vim
107
97
with :
108
- version : " ${{ matrix.host_version.vim }}"
109
- if : matrix.host_version.vim != ''
98
+ vim_type : " Vim"
99
+ vim_version : " ${{ matrix.host_version.vim }}"
100
+ download : " never"
110
101
- name : Check Vim
111
102
run : |
112
103
echo ${DENOPS_TEST_VIM}
113
104
${DENOPS_TEST_VIM} --version
114
105
env :
115
- DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable }}
116
- if : matrix.host_version.vim != ''
117
- - uses : rhysd/action-setup-vim@v1
106
+ DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable_path }}
107
+ - uses : thinca/action-setup-vim@v1
118
108
id : nvim
119
109
with :
120
- neovim : true
121
- version : " ${{ matrix.host_version.nvim }}"
122
- if : matrix.host_version.nvim != ''
110
+ vim_type : " Neovim"
111
+ vim_version : " ${{ matrix.host_version.nvim }}"
123
112
- name : Check Neovim
124
113
run : |
125
114
echo ${DENOPS_TEST_NVIM}
126
115
${DENOPS_TEST_NVIM} --version
127
116
env :
128
- DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable }}
129
- if : matrix.host_version.nvim != ''
117
+ DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable_path }}
130
118
- name : Test
131
119
working-directory : ./repo
132
120
run : make test
133
121
env :
134
- DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable }}
135
- DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable }}
122
+ DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable_path }}
123
+ DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable_path }}
136
124
timeout-minutes : 5
0 commit comments