Skip to content

Commit a3e476c

Browse files
authored
Merge pull request #13 from vim-denops/modernize
Modernize devtools and update dependencies
2 parents c2fed0d + 174898e commit a3e476c

File tree

10 files changed

+59
-71
lines changed

10 files changed

+59
-71
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Test
22

3+
env:
4+
DENO_VERSION: 1.x
5+
36
on:
47
schedule:
58
- cron: "0 7 * * 0"
@@ -10,46 +13,28 @@ on:
1013

1114
jobs:
1215
check:
13-
strategy:
14-
matrix:
15-
runner:
16-
- ubuntu-latest
17-
version:
18-
- "1.x"
19-
- "1.28.x"
20-
runs-on: ${{ matrix.runner }}
16+
runs-on: ubuntu-latest
2117
steps:
2218
- uses: actions/checkout@v3
2319
- uses: denoland/setup-deno@v1
2420
with:
25-
deno-version: "${{ matrix.version }}"
26-
- name: Lint check
27-
run: |
28-
make lint
29-
- name: Format check
21+
deno-version: ${{ env.DENO_VERSION }}
22+
- name: Format
3023
run: |
31-
make fmt-check
24+
deno fmt --check
25+
- name: Lint
26+
run: deno lint
3227
- name: Type check
33-
run: |
34-
make type-check
28+
run: deno task check
3529

3630
test:
37-
strategy:
38-
matrix:
39-
runner:
40-
- windows-latest
41-
- macos-latest
42-
- ubuntu-latest
43-
version:
44-
- "1.x"
45-
- "1.28.x"
46-
runs-on: ${{ matrix.runner }}
31+
runs-on: ubuntu-latest
4732
steps:
4833
- uses: actions/checkout@v3
4934
- uses: denoland/setup-deno@v1
5035
with:
51-
deno-version: "${{ matrix.version }}"
36+
deno-version: ${{ env.DENO_VERSION }}
5237
- name: Test
5338
run: |
54-
make test
39+
deno task test
5540
timeout-minutes: 5

.github/workflows/udd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
deno-version: "1.x"
1616
- name: Update dependencies
1717
run: |
18-
make deps > ../output.txt
18+
deno task upgrade > ../output.txt
1919
env:
2020
NO_COLOR: 1
2121
- name: Read ../output.txt
@@ -35,7 +35,7 @@ jobs:
3535
${{ steps.log.outputs.content }}
3636
3737
EOM
38-
- uses: peter-evans/create-pull-request@v4
38+
- uses: peter-evans/create-pull-request@v3
3939
with:
4040
title: ":package: Update Deno dependencies"
4141
body: |
@@ -47,3 +47,4 @@ jobs:
4747
labels: automation
4848
branch: automation/update-dependencies
4949
delete-branch: true
50+
token: "${{ secrets.PA_TOKEN }}"

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/.tools
2-
/.deno
1+
deno.lock

.gitmessage

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
# Guide (v1.0)
4+
#
5+
# 👍 :+1: Apply changes.
6+
#
7+
# 🌿 :herb: Add or update things for tests.
8+
# ☕ :coffee: Add or update things for developments.
9+
# 📦 :package: Add or update dependencies.
10+
# 📝 :memo: Add or update documentations.
11+
#
12+
# 🐛 :bug: Bugfixes.
13+
# 💋 :kiss: Critical hotfixes.
14+
# 🚿 :shower: Remove features, codes, or files.
15+
#
16+
# 🚀 :rocket: Improve performance.
17+
# 💪 :muscle: Refactor codes.
18+
# 💥 :boom: Breaking changes.
19+
# 💩 :poop: Bad codes needs to be improved.
20+
#
21+
# How to use:
22+
# git config commit.template .gitmessage
23+
#
24+
# Reference:
25+
# https://github.com/lambdalisue/emojiprefix

Makefile

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

command_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.164.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.186.0/testing/asserts.ts";
22
import * as command from "./command.ts";
33

44
const isRedrawCommandTestCases = [

deno.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"tasks": {
3+
"test": "deno test --no-lock --unstable -A --parallel",
4+
"check": "deno check --no-lock --unstable $(find . -name '*.ts')",
5+
"upgrade": "deno run --no-lock -A https://deno.land/x/udd/main.ts $(find . -name '*.ts')"
6+
}
7+
}

deps.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
export * as io from "https://deno.land/std@0.164.0/io/mod.ts";
2-
export * as streams from "https://deno.land/std@0.164.0/streams/mod.ts";
3-
export { deferred } from "https://deno.land/x/std@0.164.0/async/deferred.ts";
1+
export * as io from "https://deno.land/std@0.186.0/io/mod.ts";
2+
export * as streams from "https://deno.land/std@0.186.0/streams/mod.ts";
3+
export { deferred } from "https://deno.land/x/std@0.186.0/async/deferred.ts";
44
export type {
55
Deferred,
6-
} from "https://deno.land/x/std@0.164.0/async/deferred.ts";
7-
export type { Disposable } from "https://deno.land/x/[email protected].0/mod.ts";
6+
} from "https://deno.land/x/std@0.186.0/async/deferred.ts";
7+
export type { Disposable } from "https://deno.land/x/[email protected].1/mod.ts";
88

99
export { default as JSONparser } from "https://deno.land/x/[email protected]/jsonparser.ts";

deps_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from "https://deno.land/std@0.164.0/testing/asserts.ts";
2-
export { delay } from "https://deno.land/std@0.164.0/async/mod.ts";
3-
export { using } from "https://deno.land/x/[email protected].0/mod.ts";
1+
export * from "https://deno.land/std@0.186.0/testing/asserts.ts";
2+
export { delay } from "https://deno.land/std@0.186.0/async/mod.ts";
3+
export { using } from "https://deno.land/x/[email protected].1/mod.ts";

message_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.164.0/testing/asserts.ts";
1+
import { assertEquals } from "https://deno.land/std@0.186.0/testing/asserts.ts";
22
import * as message from "./message.ts";
33

44
const isMessageTestCases = [

0 commit comments

Comments
 (0)