feat(cloud-shared): rebrand-ready agent base domain config (waifu.fun → elizacloud.ai prep) #932
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Cloud Tests | |
| # Runs cloud's lint/typecheck/unit/integration/playwright suite when cloud-* packages or tests change. | |
| # Source: cloud/.github/workflows/tests.yml in the original elizaOS/cloud repo. | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [develop, main] | |
| paths: | |
| - "packages/cloud-api/**" | |
| - "packages/cloud-frontend/**" | |
| - "packages/cloud-shared/**" | |
| - "packages/cloud-sdk/**" | |
| - "packages/cloud-services/**" | |
| - "packages/scripts/cloud/**" | |
| - "package.json" | |
| - "bun.lock" | |
| - ".github/workflows/cloud-tests.yml" | |
| - ".github/actions/cloud-setup-test-env/**" | |
| push: | |
| branches: [develop, main] | |
| paths: | |
| - "packages/cloud-api/**" | |
| - "packages/cloud-frontend/**" | |
| - "packages/cloud-shared/**" | |
| - "packages/cloud-sdk/**" | |
| - "packages/cloud-services/**" | |
| - "packages/scripts/cloud/**" | |
| - "package.json" | |
| - "bun.lock" | |
| - ".github/workflows/cloud-tests.yml" | |
| - ".github/actions/cloud-setup-test-env/**" | |
| concurrency: | |
| group: cloud-tests-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| DATABASE_URL: postgresql://postgres@127.0.0.1:5432/postgres | |
| TEST_DATABASE_URL: postgresql://postgres@127.0.0.1:5432/postgres | |
| CACHE_BACKEND: wadis | |
| CACHE_ENABLED: "false" | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| # Default to least privilege. Override per-job where needed. | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-and-types: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: ./.github/actions/cloud-setup-test-env | |
| - name: Lint and typecheck cloud workspaces | |
| run: bun run verify:cloud | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| env: | |
| NODE_ENV: test | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: ./.github/actions/cloud-setup-test-env | |
| - name: Run cloud unit tests | |
| run: bun run test:cloud | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| env: | |
| NODE_ENV: test | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: ./.github/actions/cloud-setup-test-env | |
| with: | |
| setup-db: "true" | |
| - name: Run cloud integration tests | |
| run: bun run test:cloud:integration | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 35 | |
| needs: [lint-and-types] | |
| env: | |
| NODE_ENV: test | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: ./.github/actions/cloud-setup-test-env | |
| with: | |
| setup-db: "true" | |
| - name: Run cloud e2e tests | |
| run: bun run test:cloud:e2e | |
| playwright: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 35 | |
| needs: [lint-and-types] | |
| env: | |
| NODE_ENV: test | |
| PLAYWRIGHT_WORKERS: "1" | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: ./.github/actions/cloud-setup-test-env | |
| with: | |
| setup-db: "true" | |
| - name: Install Playwright browsers | |
| run: bunx playwright install --with-deps chromium | |
| - name: Run Playwright tests | |
| run: bun run test:cloud:playwright |