chore: setup integration test environment in CI workflow

This commit is contained in:
weishu
2025-12-25 11:07:47 +08:00
parent ac50ae3df0
commit 19abddb997
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -12,4 +12,13 @@ jobs:
- 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_SERVER_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
+1 -1
View File
@@ -43,7 +43,7 @@
"publish-npm:dry-run": "bun run scripts/publish-npm.ts --dry-run",
"tools:unpack": "bun run scripts/unpack-tools.ts",
"update-homebrew-formula": "bun run scripts/update-homebrew-formula.ts",
"test": "tsx --env-file .env.integration-test node_modules/.bin/vitest run",
"test": "vitest run",
"test:win": "vitest run",
"dev": "tsx src/index.ts",
"dev:local-server": "tsx --env-file .env.dev-local-server src/index.ts",