Browse Source

ci: check types

alvarosabu 4 months ago
parent
commit
b6737286da
1 changed files with 29 additions and 0 deletions
  1. 29 0
      .github/workflows/types.yml

+ 29 - 0
.github/workflows/types.yml

@@ -0,0 +1,29 @@
+name: Run Type Test
+on: [push]
+
+env:
+  PNPM_CACHE_FOLDER: .pnpm-store
+
+jobs:
+  test:
+    name: Are the types wrong?
+    runs-on: ubuntu-24.04
+    strategy:
+      matrix:
+        node-version: [20]
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Setup pnpm
+        uses: pnpm/action-setup@v4
+      - name: Use Node.js ${{ matrix.node-version }}
+        uses: actions/setup-node@v4
+        with:
+          node-version: ${{ matrix.node-version }}
+          cache: pnpm
+      - name: Install dependencies
+        run: pnpm install
+      - name: Build
+        run: pnpm run build
+      - name: Check Types
+        run: pnpm run test:attw