Skip to content

Commit 557acc7

Browse files
authored
Merge pull request #168 from vim-denops/fix-ci
☕ Fix CI
2 parents 644db30 + 83355e2 commit 557acc7

21 files changed

+26
-60
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
name: Test
22

3-
env:
4-
DENOPS_PATH: "../denops.vim"
5-
DENO_DIR: ".deno"
6-
73
on:
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

@@ -85,14 +71,6 @@ jobs:
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

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TARGETS := $$(find . \( -name '*.ts' -or -name '*.md' \) -not -path './.deno/*')
1+
TARGETS := $$(find . -name '*.ts' -or -name '*.md')
22

33
.DEFAULT_GOAL := help
44

@@ -8,13 +8,13 @@ help:
88
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;'
99

1010
fmt: FORCE ## Format code
11-
@deno fmt --config deno.jsonc
11+
@deno fmt
1212

1313
fmt-check: FORCE ## Format check
14-
@deno fmt --check --config deno.jsonc
14+
@deno fmt --check
1515

1616
lint: FORCE ## Lint code
17-
@deno lint --config deno.jsonc
17+
@deno lint
1818

1919
type-check: FORCE ## Type check
2020
@deno test --unstable --no-run ${TARGETS}

deno.jsonc

Lines changed: 0 additions & 12 deletions
This file was deleted.

denops_std/anonymous/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
5+
import { test } from "../test/mod.ts";
66
import * as anonymous from "./mod.ts";
77

88
test({

denops_std/autocmd/common_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
2+
import { test } from "../test/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { define, emit, emitAll, list, remove } from "./common.ts";
55

denops_std/autocmd/group_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
2+
import { test } from "../test/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { group } from "./group.ts";
55

denops_std/batch/batch_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
assertSpyCalls,
55
spy,
66
} from "https://deno.land/std@0.167.0/testing/mock.ts";
7-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
7+
import { test } from "../test/mod.ts";
88
import { batch, BatchHelper } from "./batch.ts";
99

1010
test({

denops_std/batch/gather_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
5+
import { test } from "../test/mod.ts";
66
import { gather, GatherHelper } from "./gather.ts";
77

88
test({

denops_std/function/cursor_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
22
import { assertNumber } from "https://deno.land/x/unknownutil@v2.1.0/mod.ts";
3-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
3+
import { test } from "../test/mod.ts";
44
import * as cursor from "./cursor.ts";
55
import { assertPosition, assertScreenPos, isScreenPos } from "./types.ts";
66

denops_std/function/input_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
5+
import { test } from "../test/mod.ts";
66
import { input, inputlist, inputsecret } from "./input.ts";
77
import * as autocmd from "../autocmd/mod.ts";
88
import { execute } from "../helper/execute.ts";

denops_std/function/various_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
2+
import { test } from "../test/mod.ts";
33
import * as various from "./various.ts";
44

55
test({

denops_std/helper/batch_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
2+
import { test } from "../test/mod.ts";
33
import * as fn from "../function/mod.ts";
44
import { batch } from "./batch.ts";
55

denops_std/helper/echo_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
1+
import { test } from "../test/mod.ts";
22
import { echo } from "./echo.ts";
33

44
test({

denops_std/helper/execute_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
assertInstanceOf,
44
assertRejects,
55
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
6-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
6+
import { test } from "../test/mod.ts";
77
import { execute } from "./execute.ts";
88

99
test({

denops_std/helper/input_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
5+
import { test } from "../test/mod.ts";
66
import { input } from "./input.ts";
77
import { execute } from "./execute.ts";
88
import * as autocmd from "../autocmd/mod.ts";

denops_std/helper/load_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
5+
import { test } from "../test/mod.ts";
66
import { load } from "./load.ts";
77

88
const loadScriptUrlBase =

denops_std/mapping/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
assertEquals,
44
assertRejects,
55
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
6-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
6+
import { test } from "../test/mod.ts";
77
import { Mapping, Mode } from "./types.ts";
88
import * as mapping from "./mod.ts";
99

denops_std/variable/environment_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
2+
import { test } from "../test/mod.ts";
33
import { environment } from "./environment.ts";
44

55
test({

denops_std/variable/option_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
2+
import { test } from "../test/mod.ts";
33
import { globalOptions, localOptions, options } from "./option.ts";
44

55
test({

denops_std/variable/register_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.167.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
5+
import { test } from "../test/mod.ts";
66
import { register } from "./register.ts";
77

88
test({

denops_std/variable/variable_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.167.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.3.0/test/mod.ts";
2+
import { test } from "../test/mod.ts";
33
import { buffers, globals, tabpages, vim, windows } from "./variable.ts";
44

55
test({

0 commit comments

Comments
 (0)