From 6129c7061f6cf9b62369a9a21153ca749817da14 Mon Sep 17 00:00:00 2001 From: KinjiKawaguchi Date: Sun, 1 Feb 2026 17:54:55 +0900 Subject: [PATCH 1/2] ci: add build, typecheck, lint workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build.yml: ビルド確認 - typecheck.yml: 型チェック - lint.yml: Biomeによるlint PR・push時に並列実行される Co-Authored-By: Claude Opus 4.5 --- .github/workflows/build.yml | 17 +++++++++++++++++ .github/workflows/lint.yml | 17 +++++++++++++++++ .github/workflows/typecheck.yml | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/typecheck.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cfd36c9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: Build +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + - run: npm ci + - run: npm run build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..1eb1313 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + - run: npm ci + - run: npx biome check . diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml new file mode 100644 index 0000000..8dbcb5d --- /dev/null +++ b/.github/workflows/typecheck.yml @@ -0,0 +1,17 @@ +name: Type Check +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] +jobs: + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'npm' + - run: npm ci + - run: npm run typecheck From a5d432d3e8ae4f986f9bf931e43d5f81499aa264 Mon Sep 17 00:00:00 2001 From: KinjiKawaguchi Date: Sun, 1 Feb 2026 17:59:53 +0900 Subject: [PATCH 2/2] ci: use biome ci for lint workflow - Add lint, lint:ci, format scripts to package.json - Use npm run lint:ci in CI for proper CI output Co-Authored-By: Claude Opus 4.5 --- .github/workflows/lint.yml | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1eb1313..00c6285 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,4 +14,4 @@ jobs: node-version: '22.x' cache: 'npm' - run: npm ci - - run: npx biome check . + - run: npm run lint:ci diff --git a/package.json b/package.json index 3e4b965..4f138b6 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,9 @@ "build": "tsup", "prepare": "npm run build", "typecheck": "tsc --noEmit", + "lint": "biome check .", + "lint:ci": "biome ci .", + "format": "biome format . --write", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:push": "drizzle-kit push",