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" + } +}