From 8afdf971086dc38bc1aa791519211135e56ccd26 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Fri, 13 Mar 2026 17:23:32 +0000 Subject: [PATCH] [#4] Add CI workflow for lint and type-check on PRs - .github/workflows/ci.yml: runs eslint + tsc --noEmit on every PR to main - Added typecheck script to package.json Fixes #4 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 18 ++++++++++++++++++ package.json | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..f20be1ba --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + lint-and-typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npm run lint + - run: npm run typecheck diff --git a/package.json b/package.json index 63a91e1c..8f0ee326 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "eslint" + "lint": "eslint", + "typecheck": "tsc --noEmit" }, "dependencies": { "next": "16.1.6",