mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 15:28:26 +00:00
* feat(kanban): implement AI-native kanban database models, services, and REST APIs * feat(webui): implement team kanban board and task management * style(webui): increase kanban dialog widths and form container * fix(webui): ensure kanban dialogs override sm:max-w-lg base class * style(webui): set edit task dialog max width to 5xl * chore: untrack kanban plan markdown files * feat(webui): update kanban page layout to 2 columns and refine task activity UI * fix(webui): constrain kanban column and board heights for vertical scrolling * feat(kanban): unify task status transition into updateTask API and allow unconstrained human task transitions * fix(webui): add optimistic updates to kanban drag-and-drop to eliminate flash * refactor(webui): remove client-side search box from kanban header * feat(kanban): redesign task dialog comments area and add attachment support * refactor(webui): remove top status action bar from task info dialog * fix(webui): narrow query cache predicate and add defensive guards for kanban drag optimistic update * feat(kanban): add drag-and-drop task reordering with fractional indexing (#331) * feat(kanban): add drag-and-drop task reordering with fractional indexing * fix(kanban): improve card drop zones, snap indicators, and column highlight * fix(kanban): enable card droppables only during active drag * fix(kanban): refine hover styles and drop indicators for column boundaries * fix(kanban): unify bottom drop indicator and fix top indicator clipping * fix(kanban): ensure full column highlight and full coverage drop target * minor change * feat(kanban): allow agent tasks free drag-and-drop and enforce status change permissions (#332) * refactor(kanban): rename task_type_agentic translation keys to task_type_agent * feat(kanban): refactor task type enum to isAgentTask boolean (#333) * refactor(kanban): remove phase 2 agent execution logic and streamline phase 1 kanban * feat(kanban): add notifications and audit logging for kanban (#334) * feat(kanban): redesign config area layout and add parent tasks multi-selector (#335) * feat(webui): redesign kanban task dialog config area * feat(kanban): simplify task dependencies with parent tasks multi-selector * refactor(kanban): remove unused links routes and legacy dependency methods * feat(kanban): connect assets and kanban tasks with many-to-many relationship (#336) * feat(kanban): connect assets and kanban tasks with many-to-many relationship * feat(kanban): improve asset picker layout, infinite scrolling, and breadcrumb icon styling * fix(kanban): ensure asset picker scrollarea is scrollable with min-h-0 and shrink-0 flex styling * fix(kanban): hide recently deleted in folder tree picker and adjust header padding * fix(kanban): use lucide files icon instead of paperclip for linked assets * feat(kanban): improve task deletion, goal sidebar interaction, and card styling (#337) * feat(kanban): improve task deletion, goal sidebar interaction, and card styling * feat(kanban): move agent task badge after priority and update to orange style * feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions (#338) * feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions * style(kanban): rotate kanban icon 180 degrees in sidebar and top nav * style(kanban): remove rotate-180 from SquareKanban icons * feat(kanban): add unassigned goal record and fix all tasks count (#339) * feat(kanban): add unassigned goal record and fix all tasks count * feat(kanban): toggle task count with three-dot action button on goal card hover * fix(ci): pin bun version to 1.3.14 across CI and Docker (#340) * fix(webui): truncate goal name to max 2 lines in kanban sidebar (#341)
210 lines
5.8 KiB
YAML
210 lines
5.8 KiB
YAML
name: Bun Fullstack V2
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Build & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.14
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y ripgrep bubblewrap socat ffmpeg poppler-utils imagemagick
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Typecheck
|
|
run: bun run typecheck
|
|
|
|
- name: Test
|
|
run: bun run test
|
|
|
|
- name: Test Local Release
|
|
run: |
|
|
bun run release:local --skip-check --out /tmp/shumai-local-release --force
|
|
|
|
echo "Smoke testing shumai..."
|
|
bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai/bin/shumai-app.js --check
|
|
|
|
echo "Smoke testing shumai-agent..."
|
|
bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai-agent/bin/shumai-agent-app.js --check
|
|
|
|
echo "Smoke testing shumai-transcode..."
|
|
bun run /tmp/shumai-local-release/node/node_modules/@shumai-one/shumai-transcode/bin/shumai-transcode-app.js --check
|
|
|
|
e2e_video_player:
|
|
name: Harness E2E (${{ matrix.project }})
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
project: chromium
|
|
- os: ubuntu-latest
|
|
project: firefox
|
|
# WebKit is the Safari engine; run it on a macOS runner to validate
|
|
# Safari compatibility.
|
|
- os: macos-latest
|
|
project: webkit
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.14
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Install Playwright browser (${{ matrix.project }})
|
|
run: bunx playwright install --with-deps ${{ matrix.project }}
|
|
|
|
- name: Run video player harness tests
|
|
env:
|
|
E2E_SKIP_APP_SERVER: true
|
|
run: bunx playwright test --project=harness-${{ matrix.project }}
|
|
|
|
- name: Upload Playwright report
|
|
if: ${{ !cancelled() }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: playwright-report-harness-${{ matrix.project }}
|
|
path: playwright-report/
|
|
retention-days: 7
|
|
|
|
e2e_app:
|
|
name: App E2E (${{ matrix.project }})
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
project: chromium
|
|
- os: ubuntu-latest
|
|
project: firefox
|
|
# App E2E needs Docker for testcontainers, run webkit on Ubuntu
|
|
- os: ubuntu-latest
|
|
project: webkit
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.14
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y ripgrep bubblewrap socat ffmpeg poppler-utils imagemagick
|
|
|
|
- name: Install Playwright browser (${{ matrix.project }})
|
|
run: bunx playwright install --with-deps ${{ matrix.project }}
|
|
|
|
- name: Run app E2E tests
|
|
run: bunx playwright test --project=app-${{ matrix.project }} --no-deps
|
|
|
|
- name: Upload Playwright report
|
|
if: ${{ !cancelled() }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: playwright-report-app-${{ matrix.project }}
|
|
path: playwright-report/
|
|
retention-days: 7
|
|
|
|
workflow_e2e:
|
|
name: Workflow E2E
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.14
|
|
|
|
- name: Install dependencies
|
|
run: bun install
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y ripgrep bubblewrap socat ffmpeg poppler-utils imagemagick
|
|
|
|
- name: Run Workflow E2E Tests
|
|
run: bun run test:e2e:workflow
|
|
|
|
docker_compose_deploy:
|
|
name: Docker Compose Deployment
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build Docker Image
|
|
run: |
|
|
docker build -t shumaione/shumai:latest .
|
|
|
|
- name: Start Docker Compose
|
|
run: |
|
|
docker compose -f docker-compose/local/docker-compose.yaml up -d
|
|
|
|
- name: Verify Home Page HTTP 200
|
|
run: |
|
|
echo "Waiting for shumai_app container to start..."
|
|
for i in {1..30}; do
|
|
STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3000 || true)
|
|
echo "Attempt $i: HTTP status code $STATUS_CODE"
|
|
if [ "$STATUS_CODE" -eq 200 ]; then
|
|
echo "✅ Docker compose app is running cleanly (HTTP 200 OK)"
|
|
exit 0
|
|
fi
|
|
sleep 2
|
|
done
|
|
|
|
echo "❌ Container failed to respond with HTTP 200 OK within 60s"
|
|
echo "--- Container Logs ---"
|
|
docker compose -f docker-compose/local/docker-compose.yaml logs
|
|
exit 1
|
|
|
|
- name: Cleanup Docker Compose
|
|
if: always()
|
|
run: |
|
|
docker compose -f docker-compose/local/docker-compose.yaml down -v
|