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