From 0cf13afb5c77aa2c1a803f088718feb2da25cfd3 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 15 Jan 2026 09:18:05 +0000 Subject: [PATCH 1/4] Add ci --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ package.json | 4 +++- 2 files changed, 36 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 0000000..9c4f4a3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + name: Test and Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + + - name: Setup Bun + uses: oven-sh/setup-bun@b7a1c7ccf290d58743029c4f6903da283811b979 # v2.1.0 + with: + bun-version: latest + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Lint code + run: bun run lint + + - name: Build userscript (test) + run: bun run build:userscript + + - name: Build apps (test) + run: bun run build:apps diff --git a/package.json b/package.json index ffa6329..7484061 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ }, "scripts": { "lint": "biome lint", - "format": "biome format --write" + "format": "biome format --write", + "build:userscript": "bun run -F './packages/colorproven-userscript' --elide-lines 0 build", + "build:apps": "bun run -F './apps/*' --elide-lines 0 build" }, "devDependencies": { "@biomejs/biome": "2.3.11", From 8a6d77ae514e541c2f7dd6603a3d9708b7e089ea Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 15 Jan 2026 09:20:44 +0000 Subject: [PATCH 2/4] Update biome.json --- biome.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biome.json b/biome.json index 21bfa50..83c52af 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.3.10/schema.json", + "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", "vcs": { "enabled": true, "clientKind": "git", From 180ea55d95be8daced75ab471318abbeb2b14f0a Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 15 Jan 2026 09:28:06 +0000 Subject: [PATCH 3/4] Update biome.json --- biome.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/biome.json b/biome.json index 83c52af..4e8c576 100644 --- a/biome.json +++ b/biome.json @@ -20,6 +20,15 @@ "recommended": true, "style": { "noNonNullAssertion": "warn" + }, + "correctness": { + "useExhaustiveDependencies": "warn" + }, + "suspicious": { + "noArrayIndexKey": "warn" + }, + "security": { + "noDangerouslySetInnerHtml": "warn" } } }, From d617c8bdbec33cfbf271a26a5b814eac738610b1 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 15 Jan 2026 09:33:05 +0000 Subject: [PATCH 4/4] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7484061..728d1c2 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "scripts": { "lint": "biome lint", "format": "biome format --write", - "build:userscript": "bun run -F './packages/colorproven-userscript' --elide-lines 0 build", - "build:apps": "bun run -F './apps/*' --elide-lines 0 build" + "build:userscript": "bun run -F './packages/colorproven-userscript' build", + "build:apps": "bun run -F './apps/*' build" }, "devDependencies": { "@biomejs/biome": "2.3.11",