From 9d2548382db7daa4564d75c18c077909856e3d91 Mon Sep 17 00:00:00 2001 From: mmyoji Date: Tue, 26 Nov 2024 21:03:24 +0900 Subject: [PATCH] chore: utilize task dependencies https://github.com/denoland/deno/releases/tag/v2.1.0 --- .github/workflows/test.yaml | 4 +--- deno.json | 7 ++++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4217a99..688788e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,7 +13,5 @@ jobs: - uses: denoland/setup-deno@v1 with: deno-version: v2.x - - run: deno fmt --check - - run: deno lint - - run: deno check main.ts + - run: deno run check - run: deno run test diff --git a/deno.json b/deno.json index daaf4d0..daef1ac 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,12 @@ { "lock": false, "tasks": { - "check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", + "check:fmt": "deno fmt --check", + "check:lint": "deno lint", + "check": { + "command": "deno check main.ts", + "dependencies": ["check:fmt", "check:lint"] + }, "start": "deno run -A --watch=static/,routes/ dev.ts", "build": "deno run -A dev.ts build", "preview": "deno run -A main.ts",