From c1d147ea44a487b21d117c508d68c595b7949fef Mon Sep 17 00:00:00 2001 From: Yuki Tanaka Date: Wed, 8 Mar 2023 09:38:15 +0900 Subject: [PATCH] chore: add `deno.json` (#14) --- .github/workflows/ci.yml | 7 +++---- deno.json | 7 +++++++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 deno.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9550b1..2dc013a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,11 +21,10 @@ jobs: - name: Run linter if: matrix.os == 'ubuntu-latest' run: | - deno fmt --check - deno lint + deno task lint - name: Check mod.ts run: | - deno check mod.ts + deno task typecheck - name: Run tests run: | - deno test --allow-read --allow-run --allow-env=HOME --doc --import-map=import_map.test.json + deno task test diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..61bd43b --- /dev/null +++ b/deno.json @@ -0,0 +1,7 @@ +{ + "tasks": { + "lint": "deno fmt --check && deno lint", + "typecheck": "deno check mod.ts", + "test": "deno test --allow-read --allow-run --allow-env=HOME --doc --import-map=import_map.test.json" + } +}