Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ci

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: "1.18.2"
- name: Check fmt
run: deno fmt --check
- name: Run lint
run: deno lint
- name: Run type check
run: deno cache ./**/*.ts
- name: Run test
run: deno test

32 changes: 32 additions & 0 deletions .github/workflows/udd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# from https://zenn.dev/kawarimidoll/articles/c68204d248c107#設定ファイル
name: update-deno-dependencies

on:
schedule:
- cron: "0 0 * * *"

jobs:
udd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: 1.18.2
- name: Update dependencies
run: >
deno run --allow-net --allow-read=deps/ --allow-write=deps/
--allow-run=deno https://deno.land/x/[email protected]/main.ts *.ts
--test="deno test"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: ":arrow_up: update deno dependencies"
title: Update Deno Dependencies
body: >
Automated updates by [deno-udd](https://github.com/hayd/deno-udd)
and [create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action
branch: update-deno-dependencies
author: GitHub <[email protected]>
delete-branch: true
2 changes: 1 addition & 1 deletion deps/scrapbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export type {
NotMemberError,
NotPrivilegeError,
Page,
} from "https://pax.deno.dev/scrapbox-jp/types@0.0.8";
} from "https://raw.githubusercontent.com/scrapbox-jp/types/0.0.8/mod.ts";