diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 7d8f58ae..a8b0e2a6 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -46,3 +46,25 @@ jobs: - name: Run tests run: pnpm test + + typecheck: + name: Typecheck + needs: lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + + - name: Install Node.js + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 + with: + node-version: 20 + + - uses: pnpm/action-setup@v3 + name: Install pnpm + with: + version: 8 + run_install: true + + - name: Run typecheck + run: pnpm typecheck diff --git a/package.json b/package.json index 7b90ab89..7f47ced8 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "clean": "rm -rf dist/*", "gen-component": "tsx ./utils/gen-component-script", "test": "jest", - "prepare": "husky" + "prepare": "husky", + "typecheck": "tsc" }, "dependencies": { "@fortawesome/free-solid-svg-icons": "6.5.2",