mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Standardize naming across CLI and server components: - CLI: serverUrl → apiUrl, HAPI_SERVER_URL → HAPI_API_URL - Server: webapp* → listen*, miniAppUrl → publicUrl, WEBAPP_* → HAPI_LISTEN_*, WEBAPP_URL → HAPI_PUBLIC_URL - Rename serverUrlInit.ts → apiUrlInit.ts with updated logic for backward compatibility - Update all imports, function calls, and documentation accordingly
25 lines
743 B
YAML
25 lines
743 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: oven-sh/setup-bun@v2
|
|
- run: bun install
|
|
- run: bun typecheck
|
|
- name: Create integration test env
|
|
run: |
|
|
{
|
|
echo "HAPI_HOME=~/.hapi-dev-test"
|
|
echo "HAPI_API_URL=http://localhost:3006"
|
|
echo "CLI_API_TOKEN=${CLI_API_TOKEN:-dev-test-token}"
|
|
echo "HAPI_DAEMON_HTTP_TIMEOUT=60000"
|
|
echo "HAPI_DAEMON_HEARTBEAT_INTERVAL=30000"
|
|
} > cli/.env.integration-test
|
|
- run: bun run test
|