1
1
name : Test
2
2
3
- env :
4
- DENOPS_PATH : " ../denops.vim"
5
- DENO_DIR : " .deno"
6
-
7
3
on :
8
4
schedule :
9
5
- cron : " 0 7 * * 0"
10
6
push :
11
7
branches :
12
8
- main
13
- paths :
14
- - " **.md"
15
- - " **.ts"
16
- - " .github/workflows/test.yml"
17
- - " Makefile"
18
9
pull_request :
19
10
paths :
20
11
- " **.md"
@@ -43,17 +34,12 @@ jobs:
43
34
- uses : denoland/setup-deno@v1
44
35
with :
45
36
deno-version : " ${{ matrix.version }}"
46
- - uses : actions/cache@v3
47
- with :
48
- path : ${{ env.DENO_DIR }}
49
- key : ${{ runner.os }}-deno-${{ matrix.version }}-${{ hashFiles('**/*.ts') }}
50
- restore-keys : |
51
- ${{ runner.os }}-deno-${{ matrix.version }}-
52
- ${{ runner.os }}-deno-
53
37
- name : Lint check
54
38
run : make lint
39
+ if : matrix.version == '1.x'
55
40
- name : Format check
56
41
run : make fmt-check
42
+ if : matrix.version == '1.x'
57
43
- name : Type check
58
44
run : make type-check
59
45
85
71
- uses : denoland/setup-deno@v1
86
72
with :
87
73
deno-version : " ${{ matrix.version }}"
88
- - uses : actions/cache@v3
89
- id : cache
90
- with :
91
- path : ${{ env.DENO_DIR }}
92
- key : ${{ runner.os }}-deno-${{ matrix.version }}-${{ hashFiles('**/*.ts') }}
93
- restore-keys : |
94
- ${{ runner.os }}-deno-${{ matrix.version }}-
95
- ${{ runner.os }}-deno-
96
74
- uses : thinca/action-setup-vim@v1
97
75
id : vim
98
76
with :
@@ -117,10 +95,10 @@ jobs:
117
95
env :
118
96
DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable_path }}
119
97
- name : Test
120
- working-directory : ./repo
121
98
run : make test
122
99
env :
123
- DENO_DIR : ../.deno
100
+ DENOPS_PATH : " ../denops.vim "
124
101
DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable_path }}
125
102
DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable_path }}
126
103
timeout-minutes : 10
104
+ working-directory : ./repo
0 commit comments