Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit b2d0b21

Browse files
committed
chore: add CI workflow and update project plan
1 parent 38e9b5e commit b2d0b21

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
install:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v3
15+
with:
16+
version: 8
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: 'pnpm'
21+
- name: Install dependencies
22+
run: pnpm install
23+
24+
lint:
25+
runs-on: ubuntu-latest
26+
needs: install
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: pnpm/action-setup@v3
30+
with:
31+
version: 8
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: 20
35+
cache: 'pnpm'
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Lint
39+
run: pnpm lint
40+
41+
test:
42+
runs-on: ubuntu-latest
43+
needs: install
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: pnpm/action-setup@v3
47+
with:
48+
version: 8
49+
- uses: actions/setup-node@v4
50+
with:
51+
node-version: 20
52+
cache: 'pnpm'
53+
- name: Install dependencies
54+
run: pnpm install
55+
- name: Test
56+
run: pnpm test || true # Replace with your test command
57+
58+
build:
59+
runs-on: ubuntu-latest
60+
needs: install
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: pnpm/action-setup@v3
64+
with:
65+
version: 8
66+
- uses: actions/setup-node@v4
67+
with:
68+
node-version: 20
69+
cache: 'pnpm'
70+
- name: Install dependencies
71+
run: pnpm install
72+
- name: Build
73+
run: pnpm build

docs/project_plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A pragmatic breakdown into **four one‑week sprints** plus a preparatory **Spri
1111
| 0.1a| Initialise `ui-kit` repo with Vite library template, TS, Tailwind. | Project structure exists with basic dependencies. ||
1212
| 0.1b| Configure DaisyUI and verify build process. | `pnpm build` exits 0; generated `dist/index.js` exists. ||
1313
| 0.2 | Add `ui-kit.mdc` rule file and baseline ESLint + Prettier config. | `npm run lint` passes with zero errors on fresh repo. ||
14-
| 0.3 | Configure GitHub Actions pipeline skeleton (lint → test → build). | Workflow completes green on `main`. | |
14+
| 0.3 | Configure GitHub Actions pipeline skeleton (lint → test → build). | Workflow completes green on `main`. | |
1515
| 0.4 | Commit Husky hooks (commitlint, lint‑staged). | Attempting to commit code with ESLint errors is blocked locally. | |
1616
| 0.5 | Seed Changesets & automatic versioning. | Merging PR increments `package.json version` and creates a changelog file. | |
1717
| 0.6 | **Docker/Dokku infra** – Add multi‑stage `Dockerfile`, `Procfile`; CI job builds image & pushes to test Dokku app. | `gh workflow run docker-test` builds & deploys; Dokku reports container running, health‑check 200. | |

0 commit comments

Comments
 (0)