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": "",