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
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ jobs:

# 두 패키지의 exports가 dist를 가리키므로 type-check·test 모두 빌드가 선행되어야 한다.
# react-zpl의 type-check는 zpl-core의 dist 타입을, tests는 react-zpl의 dist 타입을 참조한다.
- name: Build zpl-core
run: pnpm --filter @zpl-kit/zpl-core build

- name: Build react-zpl
run: pnpm --filter @zpl-kit/react-zpl build
- name: Build libs
run: pnpm build:libs

- name: Type check
run: pnpm type-check

# 루트 `pnpm test`는 @zpl-kit/tests로 위임한다. 로컬 에이전트가 돌리는
# `pnpm verify`와 같은 경로를 밟게 해서 CI에서만 재현되는 실패를 막는다.
- name: Run tests
run: pnpm --filter @zpl-kit/tests test --run
run: pnpm test

# docs는 tsconfig가 없어 `pnpm -r type-check`가 조용히 건너뛴다.
# 빌드가 이 패키지의 유일한 검증 수단이고, 없으면 깨진 MDX·설정이
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/publish-npm-react-zpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build zpl-core
run: pnpm --filter @zpl-kit/zpl-core build

- name: Build react-zpl
run: pnpm --filter @zpl-kit/react-zpl build
- name: Build libs
run: pnpm build:libs

- name: Run tests
run: pnpm --filter @zpl-kit/tests test --run
run: pnpm test

publish:
needs: test
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/publish-npm-zpl-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build zpl-core
run: pnpm --filter @zpl-kit/zpl-core build

- name: Build react-zpl
run: pnpm --filter @zpl-kit/react-zpl build
- name: Build libs
run: pnpm build:libs

- name: Run tests
run: pnpm --filter @zpl-kit/tests test --run
run: pnpm test

publish:
needs: test
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"demo:web": "pnpm --filter './demos/web' dev",
"demo:electron": "pnpm --filter './demos/electron' dev",
"build": "pnpm --filter @zpl-kit/zpl-core build && pnpm --filter './apps/*' --filter '!@zpl-kit/zpl-core' build && pnpm --filter './demos/*' build",
"test": "vitest",
"build:libs": "pnpm --filter @zpl-kit/zpl-core build && pnpm --filter @zpl-kit/react-zpl build",
"test": "pnpm --filter @zpl-kit/tests test",
"test:watch": "pnpm --filter @zpl-kit/tests test:watch",
"verify": "pnpm build:libs && pnpm lint && pnpm format:check && pnpm type-check && pnpm test",
"type-check": "pnpm -r type-check",
"lint": "oxlint --deny-warnings",
"format": "prettier --write .",
Expand Down
5 changes: 3 additions & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"private": true,
"type": "module",
"scripts": {
"test": "vitest",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"test:coverage": "vitest run --coverage",
"type-check": "tsc --noEmit"
},
"dependencies": {
Expand Down
Loading