From c6a7d863f2636e15c570109de205bf97a9556fb6 Mon Sep 17 00:00:00 2001 From: Nicholas Ly Date: Wed, 17 Sep 2025 18:30:29 -0500 Subject: [PATCH 1/2] Separated typecheck from lint script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3da5e36..4ff237a 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "tsc -b && vite build", "preview": "vite preview", - "lint": "tsc --noEmit && eslint .", + "typecheck": "tsc --noEmit", + "lint": "eslint .", "format": "prettier --write .", "format:check": "prettier --check ." }, From 76c5090cb6b9f719a24e6dab76761a5c9dd26a79 Mon Sep 17 00:00:00 2001 From: Nicholas Ly Date: Wed, 17 Sep 2025 18:31:18 -0500 Subject: [PATCH 2/2] Automated typecheck and linting --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a98cc12 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: ci + +on: + push: + branches: ["main"] + pull_request: + types: [opened, synchronize] + +jobs: + build: + name: Pre-build checks + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm install + + - name: Typecheck + run: npm run typecheck + + - name: Lint + run: npm run lint + + - name: Formatting + run: npm run format:check