Use dom-on for event handlers; add CI config and stepper Playwright test
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 1m5s

- web/orchestration.sx, web/signals.sx: dom-listen → dom-on (trampoline
  wrapper that resolves TCO thunks from Lambda event handlers)
- .gitea/: CI workflow and Dockerfile for automated test runs
- tests/playwright/stepper.spec.js: stepper widget smoke test
- Remove stale artdag .pyc file

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 00:19:35 +00:00
parent 7d7de86034
commit 0fce6934cb
8 changed files with 259 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
name: Build and Deploy
name: Test, Build, and Deploy
on:
push:
@@ -10,7 +10,7 @@ env:
BUILD_DIR: /root/rose-ash-ci
jobs:
build-and-deploy:
test-build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -29,12 +29,11 @@ jobs:
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts 2>/dev/null || true
- name: Build and deploy changed apps
- name: Sync CI build directory
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
run: |
ssh "root@$DEPLOY_HOST" "
# --- Build in isolated CI directory (never touch dev working tree) ---
BUILD=${{ env.BUILD_DIR }}
ORIGIN=\$(git -C ${{ env.APP_DIR }} remote get-url origin)
if [ ! -d \"\$BUILD/.git\" ]; then
@@ -43,6 +42,31 @@ jobs:
cd \"\$BUILD\"
git fetch origin
git reset --hard origin/${{ github.ref_name }}
"
- name: Test SX language suite
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
run: |
ssh "root@$DEPLOY_HOST" "
cd ${{ env.BUILD_DIR }}
echo '=== Building SX test image ==='
docker build \
-f .gitea/Dockerfile.test \
-t sx-test:${{ github.sha }} \
.
echo '=== Running SX tests ==='
docker run --rm sx-test:${{ github.sha }}
"
- name: Build and deploy changed apps
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
run: |
ssh "root@$DEPLOY_HOST" "
cd ${{ env.BUILD_DIR }}
# Detect changes using push event SHAs (not local checkout state)
BEFORE='${{ github.event.before }}'