diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..becb1e2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 + diff --git a/.github/workflows/udd.yml b/.github/workflows/udd.yml new file mode 100644 index 0000000..27527fe --- /dev/null +++ b/.github/workflows/udd.yml @@ -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/udd@0.7.2/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 + delete-branch: true diff --git a/deps/scrapbox.ts b/deps/scrapbox.ts index 60cd3d4..8baad8b 100644 --- a/deps/scrapbox.ts +++ b/deps/scrapbox.ts @@ -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";