aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-22 03:35:41 +0000
committerFuwn <[email protected]>2026-03-22 03:36:47 +0000
commit7dfa1670863609a5a024e381c8cc0c3f54d3759d (patch)
treec72b414d9e64741e68be301bb1c8209a5e7bd62e
parentchore: normalise graphql generation scripts (diff)
downloaddue.moe-7dfa1670863609a5a024e381c8cc0c3f54d3759d.tar.xz
due.moe-7dfa1670863609a5a024e381c8cc0c3f54d3759d.zip
ci: add github actions validation workflow
-rw-r--r--.github/workflows/ci.yml33
-rw-r--r--README.md13
2 files changed, 37 insertions, 9 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..c0bd757e
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,33 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+jobs:
+ validate:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: pnpm/action-setup@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: pnpm
+
+ - name: Install
+ run: pnpm install --frozen-lockfile
+
+ # - name: Check
+ # run: pnpm run check:ci
+
+ - name: Test
+ run: pnpm run test:unit
+
+ - name: Build
+ run: pnpm run build
diff --git a/README.md b/README.md
index 1a96ed9d..6854a79b 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,6 @@
# due.moe
-This repository now uses a pnpm monorepo workspace layout.
-
-## Structure
-
-- `.`: The current due.moe app (existing SvelteKit project)
-- `apps/*`: Future-related apps
-- `packages/*`: Shared libraries across apps
-- `packages/shared`: Initial shared workspace package (`@due/shared`)
+This repository contains the `due.moe` SvelteKit application.
## Install
@@ -24,8 +17,10 @@ pnpm run check
pnpm run lint
```
-## CI-equivalent Local Validation
+## Validation
```bash
pnpm run check:ci
+pnpm run test:unit
+pnpm run build
```