Skip to content

Commit 43c7856

Browse files
authored
Merge pull request #290 from vim-denops/fix-devtool
Update development toolchain configuration
2 parents 4d24486 + fb0c981 commit 43c7856

File tree

4 files changed

+29
-39
lines changed

4 files changed

+29
-39
lines changed

.github/workflows/jsr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: jsr
22

33
env:
4-
DENO_VERSION: 1.x
4+
DENO_VERSION: 2.x
55

66
on:
77
push:
@@ -19,9 +19,9 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22-
- uses: denoland/setup-deno@v1
22+
- uses: denoland/setup-deno@v2
2323
with:
2424
deno-version: ${{ env.DENO_VERSION }}
2525
- name: Publish
2626
run: |
27-
deno run -A jsr:@david/publish-on-tag@0.1.3
27+
deno run -A jsr:@david/publish-on-tag@0.2.0

.github/workflows/test.yml

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- run: git config --global core.autocrlf false
4444
if: runner.os == 'Windows'
4545
- uses: actions/checkout@v4
46-
- uses: denoland/setup-deno@v1.1.4
46+
- uses: denoland/setup-deno@v2
4747
with:
4848
deno-version: "${{ matrix.deno_version }}"
4949
- uses: actions/cache@v4
@@ -60,14 +60,6 @@ jobs:
6060
run: deno task check
6161
- name: Doc check
6262
run: deno task check:doc
63-
- name: Gen check
64-
run: |
65-
deno task gen
66-
git diff --exit-code
67-
- name: Supported version inconsistency check
68-
run: |
69-
deno task apply:supported-versions
70-
git diff --exit-code
7163

7264
test:
7365
strategy:
@@ -146,13 +138,32 @@ jobs:
146138
files: ./coverage.lcov
147139
token: ${{ secrets.CODECOV_TOKEN }}
148140

149-
jsr-publish:
150-
runs-on: ubuntu-latest
141+
supported-version-check:
142+
strategy:
143+
matrix:
144+
runner:
145+
- ubuntu-latest
146+
deno_version:
147+
- "2.x"
148+
runs-on: ${{ matrix.runner }}
151149
steps:
150+
- run: git config --global core.autocrlf false
151+
if: runner.os == 'Windows'
152152
- uses: actions/checkout@v4
153-
- uses: denoland/setup-deno@v1
153+
- uses: denoland/setup-deno@v2
154+
with:
155+
deno-version: "${{ matrix.deno_version }}"
156+
- uses: actions/cache@v4
154157
with:
155-
deno-version: ${{ env.DENO_VERSION }}
156-
- name: Publish (dry-run)
158+
key: deno-${{ hashFiles('**/*') }}
159+
restore-keys: deno-
160+
path: |
161+
/home/runner/.cache/deno/deps/https/deno.land
162+
- name: Gen check
163+
run: |
164+
deno task gen
165+
git diff --exit-code
166+
- name: Supported version inconsistency check
157167
run: |
158-
deno publish --dry-run
168+
deno task apply:supported-versions
169+
git diff --exit-code

.github/workflows/update.yml

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

deno.jsonc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@denops/std",
3-
"version": "0.0.0",
43
"exports": {
54
".": "./mod.ts",
65
"./argument": "./argument/mod.ts",
@@ -97,9 +96,6 @@
9796
"test": "deno test -A --parallel --shuffle",
9897
"test:coverage": "deno task test --coverage=.coverage",
9998
"coverage": "deno coverage .coverage",
100-
"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 deno.jsonc **/*.ts",
101-
"update:write": "deno task -q update --write",
102-
"update:commit": "deno task -q update --commit --prefix :package: --pre-commit=fmt,lint",
10399
"gen:function": "deno run -A ./.scripts/gen-function/gen-function.ts",
104100
"gen:option": "deno run -A ./.scripts/gen-option/gen-option.ts",
105101
"gen": "deno task gen:function && deno task gen:option && deno fmt",

0 commit comments

Comments
 (0)