From 94b5b27a76d0451d433341bf4ff2b4926fdcb07a Mon Sep 17 00:00:00 2001 From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> Date: Wed, 13 Dec 2023 00:20:10 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Pull=20Request=E3=81=AE=E7=A2=BA?= =?UTF-8?q?=E8=AA=8D=E3=82=92=E3=81=99=E3=82=8BWorkflow=E3=81=AB=E5=9E=8B?= =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=20(#28)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-pull-request.yml | 16 ++++++++++++++++ package.json | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-pull-request.yml b/.github/workflows/check-pull-request.yml index e6e9915..8e8972d 100644 --- a/.github/workflows/check-pull-request.yml +++ b/.github/workflows/check-pull-request.yml @@ -58,3 +58,19 @@ jobs: - name: Check build run: bun run build + check-type: + name: Check type + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: 1.0.16 + + - name: Install dependencies + run: bun install + + - name: Check type + run: bun run check-type diff --git a/package.json b/package.json index 4bd4d6a..e5d2bea 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "format": "prettier --write './**/*.{js,ts,json,yaml,yml,md,html,css,scss}' --ignore-path '.gitignore'", "format:check": "prettier --check './**/*.{js,ts,json,yaml,yml,md,html,css,scss}' --ignore-path '.gitignore'", "lint": "eslint './src/**/*.ts' --ignore-path '.gitignore'", - "lint:fix": "eslint --fix './src/**/*.ts' --ignore-path '.gitignore'" + "lint:fix": "eslint --fix './src/**/*.ts' --ignore-path '.gitignore'", + "check-type": "tsc --noEmit" }, "keywords": [], "author": "",