Stelle den Frontend-MVP und die v0.3-API auf develop bereit, damit Dev API und PWA zusammen deployen.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
827e6a2a11
commit
b276758ee1
152 files changed
+25846
-34
No files matched your search
@@ -41,7 +41,13 @@ jobs:
|
||||
export ENGINE_BUILD BUYING_AGENT_API_PORT
|
||||
ENGINE_BUILD="$(git rev-parse --short HEAD)"
|
||||
BUYING_AGENT_API_PORT=8095
|
||||
docker compose -f docker-compose.dev-env.yml build --pull=false api
|
||||
if ! grep -q '^CORS_ALLOWED_ORIGINS=' .env; then
|
||||
echo 'CORS_ALLOWED_ORIGINS=http://192.168.2.49:5174,http://localhost:5173' >> .env
|
||||
fi
|
||||
if ! grep -q '^BUYING_AGENT_FRONTEND_PORT=' .env; then
|
||||
echo 'BUYING_AGENT_FRONTEND_PORT=5174' >> .env
|
||||
fi
|
||||
docker compose -f docker-compose.dev-env.yml build --pull=false api frontend
|
||||
if ! ENGINE_BUILD="$ENGINE_BUILD" BUYING_AGENT_API_PORT="$BUYING_AGENT_API_PORT" \
|
||||
docker compose -f docker-compose.dev-env.yml up -d --wait; then
|
||||
echo "compose up --wait failed — api logs:"
|
||||
|
||||
@@ -48,7 +48,13 @@ jobs:
|
||||
ENGINE_BUILD="$(git rev-parse --short HEAD)"
|
||||
BUYING_AGENT_API_BIND=0.0.0.0
|
||||
BUYING_AGENT_API_PORT=8006
|
||||
docker compose build --pull=false api
|
||||
if ! grep -q '^CORS_ALLOWED_ORIGINS=' .env; then
|
||||
echo 'CORS_ALLOWED_ORIGINS=http://192.168.2.49:4173,http://localhost:4173' >> .env
|
||||
fi
|
||||
if ! grep -q '^BUYING_AGENT_FRONTEND_PORT=' .env; then
|
||||
echo 'BUYING_AGENT_FRONTEND_PORT=4173' >> .env
|
||||
fi
|
||||
docker compose build --pull=false api frontend
|
||||
if ! ENGINE_BUILD="$ENGINE_BUILD" \
|
||||
BUYING_AGENT_API_BIND="$BUYING_AGENT_API_BIND" \
|
||||
BUYING_AGENT_API_PORT="$BUYING_AGENT_API_PORT" \
|
||||
|
||||
@@ -57,3 +57,18 @@ jobs:
|
||||
curl -sf http://localhost:8095/health/ready
|
||||
echo
|
||||
echo "LAN smoke OK: http://192.168.2.49:8095"
|
||||
|
||||
frontend-checks:
|
||||
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Frontend typecheck, lint, test, build
|
||||
run: |
|
||||
set -e
|
||||
APP_DIR="$HOME/docker/buyingagent-dev"
|
||||
cd "$APP_DIR/frontend"
|
||||
npm ci || npm install
|
||||
npm run typecheck
|
||||
npm run lint
|
||||
npm test
|
||||
npm run build
|
||||
Reference in new issue
Block a user