name: ci on: push: branches: [main] pull_request: branches: [main] jobs: h5: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' cache: npm - run: npm ci - run: npm run build:h5 - run: npm run test:h5 - name: Install Playwright Chromium working-directory: apps/user-h5 run: npx playwright install --with-deps chromium - run: npm run test:e2e -w @yuxingu/user-h5 env: CI: true api: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: '1.22' - name: Unit tests (no integration DB) working-directory: apps/api run: go test $(go list ./... | grep -v /internal/integration) -count=1 ess-docs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: ESS artifact presence (active ECR) run: | test -f docs/ECR/ECR-005-h5-openapi-hygiene.md test -f docs/TASKS/TASK-20260805-ECR005.yaml test -f docs/TEST_REPORT/ECR-005.md test -f docs/STATE/ECR-005.md echo "ESS docs gate OK" - name: ess-validate when ESS_ROOT available env: ESS_ROOT: ${{ vars.ESS_ROOT }} run: | if [ -n "$ESS_ROOT" ] && [ -f "$ESS_ROOT/scripts/ess-validate.py" ]; then python scripts/ess-validate.py --phase coding --ecr ECR-005 --task docs/TASKS/TASK-20260805-ECR005.yaml else echo "ESS_ROOT not configured in CI — skipped full ess-validate" fi