Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 10.10.0

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Check code style with Biome
run: pnpm lint

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 10.10.0

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build all packages
run: pnpm build

- name: Type check
run: pnpm typecheck

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 10.10.0

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build packages (required for tests)
run: pnpm build

- name: Install Playwright Browsers
run: pnpm tests exec playwright install --with-deps

- name: Run tests
run: pnpm test

- name: Upload coverage reports
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: |
packages/*/coverage/
retention-days: 7
23 changes: 20 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,32 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true
"recommended": true,
"suspicious": {
"noTemplateCurlyInString": "off"
}
},
"includes": ["**", "!**/dist/**", "!**/node_modules/**", "!**/.turbo/**"]
"includes": [
"**",
"!**/dist/**",
"!**/node_modules/**",
"!**/.turbo/**",
"!**/generated/**",
"!**/coverage/**"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"includes": ["**", "!**/dist/**", "!**/node_modules/**"]
"includes": [
"**",
"!**/dist/**",
"!**/node_modules/**",
"!**/.turbo/**",
"!**/generated/**",
"!**/coverage/**"
]
},
"javascript": {
"formatter": {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"vite-plugin": "pnpm -F @workerify/vite-plugin",
"example-quickstart": "pnpm -F @workerify/example-quickstart",
"example-htmx": "pnpm -F @workerify/example-htmx",
"tests": "pnpm -F @workerify/tests",
"test:e2e": "pnpm -F @workerify/tests test",
"test:e2e:ui": "pnpm -F @workerify/tests test:ui",
"changeset": "pnpm dlx @changesets/cli",
"build": "turbo run build",
"clean": "turbo run clean",
Expand All @@ -22,7 +25,7 @@
"@types/node": "^24.5.2",
"husky": "^9.1.7",
"rimraf": "^6.0.1",
"turbo": "^2.5.6",
"turbo": "^2.5.8",
"typescript": "^5.9.2",
"vitest": "3.2.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lint": "biome check .",
"lint:fix": "biome check --fix .",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test": "vitest run",
"test:watch": "vitest --watch",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage"
Expand Down
Loading
Loading