11name : Test
22
3- env :
4- DENOPS_PATH : " ../denops.vim"
5- DENO_DIR : " .deno"
6-
73on :
84 schedule :
95 - cron : " 0 7 * * 0"
106 push :
117 branches :
128 - main
13- paths :
14- - " **.md"
15- - " **.ts"
16- - " .github/workflows/test.yml"
17- - " Makefile"
189 pull_request :
1910 paths :
2011 - " **.md"
@@ -43,17 +34,12 @@ jobs:
4334 - uses : denoland/setup-deno@v1
4435 with :
4536 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-
5337 - name : Lint check
5438 run : make lint
39+ if : matrix.version == '1.x'
5540 - name : Format check
5641 run : make fmt-check
42+ if : matrix.version == '1.x'
5743 - name : Type check
5844 run : make type-check
5945
8571 - uses : denoland/setup-deno@v1
8672 with :
8773 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-
9674 - uses : thinca/action-setup-vim@v1
9775 id : vim
9876 with :
@@ -117,10 +95,10 @@ jobs:
11795 env :
11896 DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable_path }}
11997 - name : Test
120- working-directory : ./repo
12198 run : make test
12299 env :
123- DENO_DIR : ../.deno
100+ DENOPS_PATH : " ../denops.vim "
124101 DENOPS_TEST_VIM : ${{ steps.vim.outputs.executable_path }}
125102 DENOPS_TEST_NVIM : ${{ steps.nvim.outputs.executable_path }}
126103 timeout-minutes : 10
104+ working-directory : ./repo
0 commit comments