diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0735135..0271919 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,8 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - deno: [1.x, "1.8.2", canary, ~1.7, e7b7129b7a92b7500ded88f8f5baa25a7f59e56e] + deno: + [1.x, "1.8.2", canary, ~1.7, e7b7129b7a92b7500ded88f8f5baa25a7f59e56e] steps: - uses: actions/checkout@v2 @@ -24,3 +25,9 @@ jobs: - name: Test Deno run: deno run https://deno.land/std/examples/welcome.ts + + - name: Format + run: npm run fmt:check + + - name: Lint + run: npm run lint diff --git a/package.json b/package.json index ef43ca9..ae67bc9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "license": "MIT", "scripts": { "lint": "deno lint --unstable --ignore=node_modules", - "fmt": "deno fmt --ignore=node_modules" + "fmt": "deno fmt --ignore=node_modules", + "fmt:check": "deno fmt --ignore=node_modules --check" }, "dependencies": { "@actions/core": "^1.2.6",