From 1d9552e2b127ab45186064d459e05529896c9837 Mon Sep 17 00:00:00 2001 From: Alisue Date: Mon, 29 Sep 2025 02:15:21 +0900 Subject: [PATCH 1/6] Use denoland/setup-deno@v2 instead --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f9a1cf4..379cf8ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -82,7 +82,7 @@ jobs: - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1.1.4 + - uses: denoland/setup-deno@v2 with: deno-version: "${{ matrix.deno_version }}" From 893fbb6b11e8c5e56b2c08eaed075a6726f7dd88 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 5 Oct 2025 22:19:40 +0900 Subject: [PATCH 2/6] :package: Upgrade @denops/test to ^4.0.0 --- deno.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deno.jsonc b/deno.jsonc index 0043f8cd..79668b4d 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -48,7 +48,7 @@ "@core/asyncutil": "jsr:@core/asyncutil@^1.2.0", "@core/unknownutil": "jsr:@core/unknownutil@^4.3.0", "@denops/core": "jsr:@denops/core@^8.0.0", - "@denops/test": "jsr:@denops/test@^3.0.4", + "@denops/test": "jsr:@denops/test@^4.0.0", "@lambdalisue/errorutil": "jsr:@lambdalisue/errorutil@^1.1.1", "@lambdalisue/itertools": "jsr:@lambdalisue/itertools@^1.1.2", "@lambdalisue/unreachable": "jsr:@lambdalisue/unreachable@^1.0.1", From 5a8c8fff91d47a142396dbc25dda3a1e632f054b Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 5 Oct 2025 22:20:23 +0900 Subject: [PATCH 3/6] :coffee: Test on Deno ~2.3 instead --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 379cf8ae..b6031672 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -69,7 +69,7 @@ jobs: - macos-latest - ubuntu-latest deno_version: - - "2.3.0" + - "~2.3" - "2.x" host_version: - vim: "v9.1.1646" From 01c0eb05aa3df7eb5d08a9df7adb80f14ac9d3c5 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 5 Oct 2025 22:21:01 +0900 Subject: [PATCH 4/6] :coffee: Force LF on Windows in case --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6031672..100d52d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,7 +77,9 @@ jobs: runs-on: ${{ matrix.runner }} timeout-minutes: 15 steps: - - run: git config --global core.autocrlf false + - run: | + git config --global core.autocrlf false + git config --global core.eol lf if: runner.os == 'Windows' - uses: actions/checkout@v4 From 0519e3f80e4d03d4f3cc5f8603ec0face1a3d583 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 5 Oct 2025 22:22:22 +0900 Subject: [PATCH 5/6] :coffee: Remove coverage related tasks --- .github/workflows/test.yml | 4 ++-- deno.jsonc | 16 ++-------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 100d52d8..2c02e689 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -128,11 +128,11 @@ jobs: ./mod.ts - name: Test - run: deno task test:coverage + run: deno task test --coverage=cov timeout-minutes: 15 - run: | - deno task coverage --lcov > coverage.lcov + deno coverage --lcov cov > coverage.lcov - uses: codecov/codecov-action@v4 with: diff --git a/deno.jsonc b/deno.jsonc index 79668b4d..1322df6c 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -30,19 +30,9 @@ "./popup": "./popup/mod.ts", "./variable": "./variable/mod.ts" }, - "exclude": [ - ".coverage/**" - ], "publish": { - "include": [ - "**/*.ts", - "README.md", - "LICENSE" - ], - "exclude": [ - "**/*_test.ts", - ".*" - ] + "include": ["**/*.ts", "README.md", "LICENSE"], + "exclude": ["**/*_test.ts", ".*"] }, "imports": { "@core/asyncutil": "jsr:@core/asyncutil@^1.2.0", @@ -94,8 +84,6 @@ "check": "deno check ./**/*.ts", "check:doc": "deno test --doc --no-run", "test": "deno test -A --parallel --shuffle", - "test:coverage": "deno task test --coverage=.coverage", - "coverage": "deno coverage .coverage", "gen:function": "deno run -A ./.scripts/gen-function/gen-function.ts", "gen:option": "deno run -A ./.scripts/gen-option/gen-option.ts", "gen": "deno task gen:function && deno task gen:option && deno fmt", From 2c00a77e32aff4c897629fbff483da0e7d93fa66 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 5 Oct 2025 22:26:45 +0900 Subject: [PATCH 6/6] :coffee: Require check but do not stop on first failure Because Deno currently has an issue for generating coverage reports on Windows, we want to run all tests even if one fails. https://github.com/denoland/deno/issues/30924 --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2c02e689..6009b6f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,10 @@ jobs: run: deno task check:doc test: + needs: check + strategy: + fail-fast: false matrix: runner: - windows-latest