Skip to content

Commit 9dba8a3

Browse files
authored
Merge pull request #17 from lambdalisue/update
📦 Update devtools and dependencies
2 parents 1a7d4bc + 35018bf commit 9dba8a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+235
-238
lines changed

.github/workflows/test.yml

Lines changed: 55 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,57 @@ on:
55
branches:
66
- main
77
pull_request:
8+
paths:
9+
- "**.md"
10+
- "**.ts"
11+
- "deno.jsonc"
12+
- ".github/workflows/test.yml"
813
workflow_dispatch:
14+
inputs:
15+
denops_branch:
16+
description: "Denops branch to test"
17+
required: false
18+
default: "main"
919

1020
defaults:
1121
run:
1222
shell: bash --noprofile --norc -eo pipefail {0}
1323

24+
env:
25+
DENOPS_BRANCH: ${{ github.event.inputs.denops_branch || 'main' }}
26+
1427
jobs:
1528
check:
16-
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
runner:
32+
- ubuntu-latest
33+
deno_version:
34+
- "1.x"
35+
runs-on: ${{ matrix.runner }}
1736
steps:
37+
- run: git config --global core.autocrlf false
38+
if: runner.os == 'Windows'
1839
- uses: actions/checkout@v4
19-
- uses: denoland/setup-deno@v1
20-
- name: Lint
40+
- uses: denoland/[email protected]
41+
with:
42+
deno-version: "${{ matrix.deno_version }}"
43+
- uses: actions/cache@v4
44+
with:
45+
key: deno-${{ hashFiles('**/*') }}
46+
restore-keys: deno-
47+
path: |
48+
/home/runner/.cache/deno/deps/https/deno.land
49+
- name: Lint check
2150
run: deno lint
22-
- name: Format
51+
- name: Format check
2352
run: deno fmt --check
2453
- name: Type check
2554
run: deno task check
55+
- name: Gen check
56+
run: |
57+
deno task gen
58+
git diff --exit-code
2659
2760
test:
2861
strategy:
@@ -32,39 +65,43 @@ jobs:
3265
- macos-latest
3366
- ubuntu-latest
3467
deno_version:
35-
- "1.45.x"
68+
- "1.45.0"
3669
- "1.x"
3770
host_version:
3871
- vim: "v9.1.0448"
3972
nvim: "v0.10.0"
40-
4173
runs-on: ${{ matrix.runner }}
42-
74+
timeout-minutes: 15
4375
steps:
4476
- run: git config --global core.autocrlf false
4577
if: runner.os == 'Windows'
4678

4779
- uses: actions/checkout@v4
4880

49-
- uses: denoland/setup-deno@v1
81+
- uses: denoland/setup-deno@v1.1.4
5082
with:
51-
deno-version: ${{ matrix.deno_version }}
83+
deno-version: "${{ matrix.deno_version }}"
5284

5385
- name: Get denops
5486
run: |
5587
git clone https://github.com/vim-denops/denops.vim /tmp/denops.vim
5688
echo "DENOPS_TEST_DENOPS_PATH=/tmp/denops.vim" >> "$GITHUB_ENV"
5789
90+
- name: Try switching denops branch
91+
run: |
92+
git -C /tmp/denops.vim switch ${{ env.DENOPS_BRANCH }} || true
93+
git -C /tmp/denops.vim branch
94+
5895
- uses: rhysd/action-setup-vim@v1
5996
id: vim
6097
with:
61-
version: ${{ matrix.host_version.vim }}
98+
version: "${{ matrix.host_version.vim }}"
6299

63100
- uses: rhysd/action-setup-vim@v1
64101
id: nvim
65102
with:
66103
neovim: true
67-
version: ${{ matrix.host_version.nvim }}
104+
version: "${{ matrix.host_version.nvim }}"
68105

69106
- name: Export executables
70107
run: |
@@ -79,14 +116,15 @@ jobs:
79116
80117
- name: Perform pre-cache
81118
run: |
82-
deno cache ${DENOPS_TEST_DENOPS_PATH}/denops/@denops-private/mod.ts
83-
deno cache ./denops/**/*.ts
119+
deno cache \
120+
${DENOPS_TEST_DENOPS_PATH}/denops/@denops-private/mod.ts ./denops/fall/main.ts
84121
85-
- name: Run tests
86-
run: |
87-
deno task test:coverage
122+
- name: Test
123+
run: deno task test:coverage
124+
timeout-minutes: 15
125+
126+
- run: |
88127
deno task coverage --lcov > coverage.lcov
89-
timeout-minutes: 5
90128
91129
- uses: codecov/codecov-action@v4
92130
with:

.github/workflows/update.yml

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

deno.jsonc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
},
1414
"publish": {
1515
"include": [
16-
"./denops/@fall"
16+
"./denops/@fall",
17+
"README.md",
18+
"LICENSE"
1719
]
1820
},
1921
"exclude": [
@@ -26,7 +28,8 @@
2628
"test:coverage": "deno task test --coverage=.coverage",
2729
"coverage": "deno coverage .coverage --exclude=testdata/",
2830
"update": "deno run --allow-env --allow-read --allow-write=. --allow-run=git,deno --allow-net=deno.land,jsr.io,registry.npmjs.org jsr:@molt/cli ./**/*.ts",
29-
"update:commit": "deno task -q update --commit --pre-commit=fmt,lint",
31+
"update:write": "deno task -q update --write",
32+
"update:commit": "deno task -q update --commit --prefix :package: --pre-commit=fmt,lint",
3033
"gen": "deno run -A ./.script/build_fall_config_schema.ts && deno fmt"
3134
}
3235
}

denops/@fall-extension/action/cmd.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { Denops } from "jsr:@denops/[email protected]";
2-
import type { GetAction } from "jsr:@lambdalisue/[email protected]/action";
3-
import * as fn from "jsr:@denops/[email protected]/function";
4-
import { input } from "jsr:@denops/[email protected]/helper/input";
5-
import { dirname } from "jsr:@std/path@0.225.0/dirname";
1+
import type { Denops } from "jsr:@denops/std@^7.0.0";
2+
import type { GetAction } from "jsr:@lambdalisue/vim-fall@^0.6.0/action";
3+
import * as fn from "jsr:@denops/std@^7.0.0/function";
4+
import { input } from "jsr:@denops/std@^7.0.0/helper/input";
5+
import { dirname } from "jsr:@std/path@^1.0.0/dirname";
66
import { assert, is, type Predicate } from "jsr:@core/unknownutil@^4.0.0";
77

88
import { retrieve } from "../util.ts";

denops/@fall-extension/action/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetAction } from "jsr:@lambdalisue/[email protected]/action";
1+
import type { GetAction } from "jsr:@lambdalisue/vim-fall@^0.6.0/action";
22

33
export const getAction: GetAction = (_denops, _options) => {
44
return {

denops/@fall-extension/action/open.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { GetAction } from "jsr:@lambdalisue/[email protected]/action";
2-
import * as buffer from "jsr:@denops/[email protected]/buffer";
3-
import * as fn from "jsr:@denops/[email protected]/function";
4-
import { assert, as, is } from "jsr:@core/unknownutil@^4.0.0";
1+
import type { GetAction } from "jsr:@lambdalisue/vim-fall@^0.6.0/action";
2+
import * as buffer from "jsr:@denops/std@^7.0.0/buffer";
3+
import * as fn from "jsr:@denops/std@^7.0.0/function";
4+
import { as, assert, is } from "jsr:@core/unknownutil@^4.0.0";
55

66
const isOptions = is.StrictOf(is.PartialOf(is.ObjectOf({
77
bang: is.Boolean,

denops/@fall-extension/action/quickfix.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { GetAction } from "jsr:@lambdalisue/[email protected]/action";
2-
import * as fn from "jsr:@denops/[email protected]/function";
3-
import { assert, as, is } from "jsr:@core/unknownutil@^4.0.0";
1+
import type { GetAction } from "jsr:@lambdalisue/vim-fall@^0.6.0/action";
2+
import * as fn from "jsr:@denops/std@^7.0.0/function";
3+
import { as, assert, is } from "jsr:@core/unknownutil@^4.0.0";
44

55
const isOptions = is.StrictOf(is.PartialOf(is.ObjectOf({
66
what: is.PartialOf(is.ObjectOf({

denops/@fall-extension/action/systemopen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { GetAction } from "jsr:@lambdalisue/[email protected]/action";
2-
import { systemopen } from "jsr:@lambdalisue/[email protected]";
1+
import type { GetAction } from "jsr:@lambdalisue/vim-fall@^0.6.0/action";
2+
import { systemopen } from "jsr:@lambdalisue/systemopen@^1.0.0";
33
import { is } from "jsr:@core/unknownutil@^4.0.0";
44

55
const isPathDetail = is.ObjectOf({

denops/@fall-extension/action/yank.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Denops } from "jsr:@denops/[email protected]";
2-
import type { GetAction } from "jsr:@lambdalisue/[email protected]/action";
1+
import type { Denops } from "jsr:@denops/std@^7.0.0";
2+
import type { GetAction } from "jsr:@lambdalisue/vim-fall@^0.6.0/action";
33

44
export const getAction: GetAction = (denops, _options) => {
55
return {

denops/@fall-extension/previewer/attr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetPreviewer } from "jsr:@lambdalisue/[email protected]/previewer";
1+
import type { GetPreviewer } from "jsr:@lambdalisue/vim-fall@^0.6.0/previewer";
22
import { assert, is } from "jsr:@core/unknownutil@^4.0.0";
33

44
import { retrieve } from "../util.ts";

0 commit comments

Comments
 (0)