diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3f9a1cf4..6009b6f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,14 +62,17 @@ jobs: run: deno task check:doc test: + needs: check + strategy: + fail-fast: false matrix: runner: - windows-latest - macos-latest - ubuntu-latest deno_version: - - "2.3.0" + - "~2.3" - "2.x" host_version: - vim: "v9.1.1646" @@ -77,12 +80,14 @@ 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 - - uses: denoland/setup-deno@v1.1.4 + - uses: denoland/setup-deno@v2 with: deno-version: "${{ matrix.deno_version }}" @@ -126,11 +131,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 0043f8cd..1322df6c 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -30,25 +30,15 @@ "./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", "@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", @@ -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",