1
1
name : Test
2
2
3
3
env :
4
- DENO_VERSION : 1.x
5
4
DENOPS_PATH : " ../denops.vim"
6
5
6
+ defaults :
7
+ run :
8
+ shell : bash --noprofile --norc -eo pipefail {0}
9
+
7
10
on :
8
11
schedule :
9
12
- cron : " 0 7 * * 0"
23
26
- " .github/workflows/test.yml"
24
27
25
28
jobs :
26
- typecheck :
27
- runs-on : ubuntu-20.04
28
-
29
+ check :
30
+ strategy :
31
+ matrix :
32
+ runner :
33
+ - windows-latest
34
+ - macos-latest
35
+ - ubuntu-latest
36
+ version :
37
+ - " 1.11.0"
38
+ - " 1.x"
39
+ runs-on : ${{ matrix.runner }}
29
40
steps :
41
+ - run : git config --global core.autocrlf false
42
+ if : runner.os == 'Windows'
30
43
- uses : actions/checkout@v2
31
44
- uses : denoland/setup-deno@main
32
45
with :
33
- deno-version : ${{ env.DENO_VERSION }}
34
- - name : Type check
35
- run : make type-check
36
-
37
- lint :
38
- runs-on : ubuntu-20.04
39
-
40
- steps :
41
- - uses : actions/checkout@v2
42
- - uses : denoland/setup-deno@main
43
- with :
44
- deno-version : ${{ env.DENO_VERSION }}
45
- - name : Lint
46
+ deno-version : " ${{ matrix.version }}"
47
+ - name : Lint check
46
48
run : make lint
47
-
48
- format :
49
- runs-on : ubuntu-20.04
50
-
51
- steps :
52
- - uses : actions/checkout@v2
53
- - uses : denoland/setup-deno@main
54
- with :
55
- deno-version : ${{ env.DENO_VERSION }}
56
- - name : Format
49
+ - name : Format check
57
50
run : make fmt-check
51
+ - name : Type check
52
+ run : make type-check
58
53
59
54
test :
60
- runs-on : ubuntu-20.04
61
-
62
- defaults :
63
- run :
64
- working-directory : ./repo
65
-
55
+ strategy :
56
+ fail-fast : false
57
+ matrix :
58
+ runner :
59
+ - windows-latest
60
+ - macos-latest
61
+ - ubuntu-latest
62
+ version :
63
+ - " 1.11.0"
64
+ - " 1.x"
65
+ host_version :
66
+ - vim : " v8.1.2424"
67
+ nvim : " "
68
+ - vim : " v8.2.3081"
69
+ nvim : " "
70
+ - vim : " "
71
+ nvim : " v0.4.4"
72
+ - vim : " "
73
+ nvim : " v0.5.0"
74
+ runs-on : ${{ matrix.runner }}
66
75
steps :
76
+ - run : git config --global core.autocrlf false
77
+ if : runner.os == 'Windows'
67
78
- uses : actions/checkout@v2
68
79
with :
69
80
path : " ./repo"
@@ -73,29 +84,34 @@ jobs:
73
84
path : " ./denops.vim"
74
85
- uses : denoland/setup-deno@main
75
86
with :
76
- deno-version : ${{ env.DENO_VERSION }}
87
+ deno-version : " ${{ matrix.version }}"
77
88
- uses : rhysd/action-setup-vim@v1
78
89
id : vim
79
90
with :
80
- version : " v8.1.2424"
81
- - uses : rhysd/action-setup-vim@v1
82
- id : nvim
83
- with :
84
- neovim : true
85
- version : " v0.4.4"
91
+ version : " ${{ matrix.host_version.vim }}"
92
+ if : matrix.host_version.vim != ''
86
93
- name : Check Vim
87
94
run : |
88
95
echo ${DENOPS_TEST_VIM}
89
96
${DENOPS_TEST_VIM} --version
90
97
env :
91
98
DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable }}
99
+ if : matrix.host_version.vim != ''
100
+ - uses : rhysd/action-setup-vim@v1
101
+ id : nvim
102
+ with :
103
+ neovim : true
104
+ version : " ${{ matrix.host_version.nvim }}"
105
+ if : matrix.host_version.nvim != ''
92
106
- name : Check Neovim
93
107
run : |
94
108
echo ${DENOPS_TEST_NVIM}
95
109
${DENOPS_TEST_NVIM} --version
96
110
env :
97
111
DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable }}
112
+ if : matrix.host_version.nvim != ''
98
113
- name : Test
114
+ working-directory : ./repo
99
115
run : make test
100
116
env :
101
117
DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable }}
0 commit comments