Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize devtools and update dependencies #13

Merged
merged 3 commits into from May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
41 changes: 13 additions & 28 deletions .github/workflows/test.yml
@@ -1,5 +1,8 @@
name: Test

env:
DENO_VERSION: 1.x

on:
schedule:
- cron: "0 7 * * 0"
Expand All @@ -10,46 +13,28 @@ on:

jobs:
check:
strategy:
matrix:
runner:
- ubuntu-latest
version:
- "1.x"
- "1.28.x"
runs-on: ${{ matrix.runner }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: "${{ matrix.version }}"
- name: Lint check
run: |
make lint
- name: Format check
deno-version: ${{ env.DENO_VERSION }}
- name: Format
run: |
make fmt-check
deno fmt --check
- name: Lint
run: deno lint
- name: Type check
run: |
make type-check
run: deno task check

test:
strategy:
matrix:
runner:
- windows-latest
- macos-latest
- ubuntu-latest
version:
- "1.x"
- "1.28.x"
runs-on: ${{ matrix.runner }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: "${{ matrix.version }}"
deno-version: ${{ env.DENO_VERSION }}
- name: Test
run: |
make test
deno task test
timeout-minutes: 5
5 changes: 3 additions & 2 deletions .github/workflows/udd.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
deno-version: "1.x"
- name: Update dependencies
run: |
make deps > ../output.txt
deno task upgrade > ../output.txt
env:
NO_COLOR: 1
- name: Read ../output.txt
Expand All @@ -35,7 +35,7 @@ jobs:
${{ steps.log.outputs.content }}

EOM
- uses: peter-evans/create-pull-request@v4
- uses: peter-evans/create-pull-request@v3
with:
title: ":package: Update Deno dependencies"
body: |
Expand All @@ -47,3 +47,4 @@ jobs:
labels: automation
branch: automation/update-dependencies
delete-branch: true
token: "${{ secrets.PA_TOKEN }}"
3 changes: 1 addition & 2 deletions .gitignore
@@ -1,2 +1 @@
/.tools
/.deno
deno.lock
25 changes: 25 additions & 0 deletions .gitmessage
@@ -0,0 +1,25 @@


# Guide (v1.0)
#
# 👍 :+1: Apply changes.
#
# 🌿 :herb: Add or update things for tests.
# ☕ :coffee: Add or update things for developments.
# 📦 :package: Add or update dependencies.
# 📝 :memo: Add or update documentations.
#
# 🐛 :bug: Bugfixes.
# 💋 :kiss: Critical hotfixes.
# 🚿 :shower: Remove features, codes, or files.
#
# 🚀 :rocket: Improve performance.
# 💪 :muscle: Refactor codes.
# 💥 :boom: Breaking changes.
# 💩 :poop: Bad codes needs to be improved.
#
# How to use:
# git config commit.template .gitmessage
#
# Reference:
# https://github.com/lambdalisue/emojiprefix
29 changes: 0 additions & 29 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion command_test.ts
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.164.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.186.0/testing/asserts.ts";
import * as command from "./command.ts";

const isRedrawCommandTestCases = [
Expand Down
7 changes: 7 additions & 0 deletions deno.jsonc
@@ -0,0 +1,7 @@
{
"tasks": {
"test": "deno test --no-lock --unstable -A --parallel",
"check": "deno check --no-lock --unstable $(find . -name '*.ts')",
"upgrade": "deno run --no-lock -A https://deno.land/x/udd/main.ts $(find . -name '*.ts')"
}
}
10 changes: 5 additions & 5 deletions deps.ts
@@ -1,9 +1,9 @@
export * as io from "https://deno.land/std@0.164.0/io/mod.ts";
export * as streams from "https://deno.land/std@0.164.0/streams/mod.ts";
export { deferred } from "https://deno.land/x/std@0.164.0/async/deferred.ts";
export * as io from "https://deno.land/std@0.186.0/io/mod.ts";
export * as streams from "https://deno.land/std@0.186.0/streams/mod.ts";
export { deferred } from "https://deno.land/x/std@0.186.0/async/deferred.ts";
export type {
Deferred,
} from "https://deno.land/x/std@0.164.0/async/deferred.ts";
export type { Disposable } from "https://deno.land/x/disposable@v1.1.0/mod.ts";
} from "https://deno.land/x/std@0.186.0/async/deferred.ts";
export type { Disposable } from "https://deno.land/x/disposable@v1.1.1/mod.ts";

export { default as JSONparser } from "https://deno.land/x/streamparser_json@v0.0.10/jsonparser.ts";
6 changes: 3 additions & 3 deletions deps_test.ts
@@ -1,3 +1,3 @@
export * from "https://deno.land/std@0.164.0/testing/asserts.ts";
export { delay } from "https://deno.land/std@0.164.0/async/mod.ts";
export { using } from "https://deno.land/x/disposable@v1.1.0/mod.ts";
export * from "https://deno.land/std@0.186.0/testing/asserts.ts";
export { delay } from "https://deno.land/std@0.186.0/async/mod.ts";
export { using } from "https://deno.land/x/disposable@v1.1.1/mod.ts";
2 changes: 1 addition & 1 deletion message_test.ts
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.164.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.186.0/testing/asserts.ts";
import * as message from "./message.ts";

const isMessageTestCases = [
Expand Down