Skip to content

Commit bd8b8a8

Browse files
authored
Merge pull request #2 from takker99/ci
Add CI
2 parents fa80235 + dda9aab commit bd8b8a8

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: ci
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: denoland/setup-deno@v1
11+
with:
12+
deno-version: "1.18.2"
13+
- name: Check fmt
14+
run: deno fmt --check
15+
- name: Run lint
16+
run: deno lint
17+
- name: Run type check
18+
run: deno cache ./**/*.ts
19+
- name: Run test
20+
run: deno test
21+

.github/workflows/udd.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# from https://zenn.dev/kawarimidoll/articles/c68204d248c107#設定ファイル
2+
name: update-deno-dependencies
3+
4+
on:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
udd:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: denoland/setup-deno@v1
14+
with:
15+
deno-version: 1.18.2
16+
- name: Update dependencies
17+
run: >
18+
deno run --allow-net --allow-read=deps/ --allow-write=deps/
19+
--allow-run=deno https://deno.land/x/[email protected]/main.ts *.ts
20+
--test="deno test"
21+
- name: Create Pull Request
22+
uses: peter-evans/create-pull-request@v3
23+
with:
24+
commit-message: ":arrow_up: update deno dependencies"
25+
title: Update Deno Dependencies
26+
body: >
27+
Automated updates by [deno-udd](https://github.com/hayd/deno-udd)
28+
and [create-pull-request](https://github.com/peter-evans/create-pull-request)
29+
GitHub action
30+
branch: update-deno-dependencies
31+
author: GitHub <[email protected]>
32+
delete-branch: true

deps/scrapbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export type {
77
NotMemberError,
88
NotPrivilegeError,
99
Page,
10-
} from "https://pax.deno.dev/scrapbox-jp/types@0.0.8";
10+
} from "https://raw.githubusercontent.com/scrapbox-jp/types/0.0.8/mod.ts";

0 commit comments

Comments
 (0)