chore: remove legacy Vite frontend
This commit is contained in:
@@ -23,15 +23,12 @@ jobs:
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: npm
|
||||
cache-dependency-path: |
|
||||
jyotish-app/package-lock.json
|
||||
frontend/package-lock.json
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt -r requirements-dev.txt
|
||||
npm ci --prefix jyotish-app
|
||||
npm ci --prefix frontend
|
||||
|
||||
- name: Print environment diagnostics
|
||||
@@ -39,8 +36,6 @@ jobs:
|
||||
python --version
|
||||
node --version
|
||||
npm --version
|
||||
npm --prefix jyotish-app exec -- vite --version
|
||||
test -x jyotish-app/node_modules/.bin/vite
|
||||
|
||||
- name: Run Ruff lint for quality gate files
|
||||
run: ruff check scripts/run_quality_gate.py tests/test_varga_bphs.py tests/test_ashtakavarga_invariants.py tests/test_cli_smoke.py tests/test_yoga_rules_integrity.py
|
||||
@@ -51,7 +46,7 @@ jobs:
|
||||
- name: Run quick quality gate
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
python scripts/run_quality_gate.py --profile quick --skip-yoga-logic 2>&1 | tee artifacts/quick-quality-gate.log
|
||||
python scripts/run_quality_gate.py --profile quick --skip-yoga-logic --skip-frontend-runtime 2>&1 | tee artifacts/quick-quality-gate.log
|
||||
- name: Upload quick quality gate diagnostics
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -59,9 +54,6 @@ jobs:
|
||||
name: quick-quality-gate-diagnostics
|
||||
path: artifacts/
|
||||
|
||||
- name: Build frontend
|
||||
run: npm run build --prefix jyotish-app
|
||||
|
||||
- name: Validate production web
|
||||
env:
|
||||
NEXT_PUBLIC_SUPABASE_URL: https://ci-placeholder.supabase.co
|
||||
|
||||
@@ -70,8 +70,6 @@ jobs:
|
||||
--exclude='.env.production' \
|
||||
--exclude='frontend/node_modules/' \
|
||||
--exclude='frontend/.next/' \
|
||||
--exclude='jyotish-app/node_modules/' \
|
||||
--exclude='jyotish-app/dist/' \
|
||||
-e "$RSYNC_SSH" \
|
||||
./ "$DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH/"
|
||||
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
name: Build & Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=ref,event=branch
|
||||
type=sha,format=short
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
@@ -6,10 +6,9 @@ on:
|
||||
branches: [main]
|
||||
paths:
|
||||
- '.github/workflows/release-quality-gate.yml'
|
||||
- 'frontend/**'
|
||||
- 'scripts/run_quality_gate.py'
|
||||
- 'tests/run_frontend_click_smoke.py'
|
||||
- 'tests/run_frontend_runtime_smoke.py'
|
||||
- 'jyotish-app/**'
|
||||
- 'tests/**'
|
||||
|
||||
jobs:
|
||||
release-quality-gate:
|
||||
@@ -27,9 +26,9 @@ jobs:
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: '22'
|
||||
cache: npm
|
||||
cache-dependency-path: jyotish-app/package-lock.json
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -37,24 +36,23 @@ jobs:
|
||||
python -m pip install -r requirements.txt -r requirements-dev.txt
|
||||
python -m pip install playwright
|
||||
python -m playwright install --with-deps chromium
|
||||
npm ci --prefix jyotish-app
|
||||
npm ci --prefix frontend
|
||||
|
||||
- name: Print environment diagnostics
|
||||
run: |
|
||||
python --version
|
||||
node --version
|
||||
npm --version
|
||||
npm --prefix jyotish-app exec -- vite --version
|
||||
python - <<'PY'
|
||||
from pathlib import Path
|
||||
print("frontend node_modules:", (Path("jyotish-app") / "node_modules").exists())
|
||||
print("vite binary:", (Path("jyotish-app") / "node_modules" / ".bin" / "vite").exists())
|
||||
PY
|
||||
npm --prefix frontend exec -- next --version
|
||||
|
||||
- name: Run release quality gate
|
||||
env:
|
||||
NEXT_PUBLIC_SUPABASE_URL: https://ci-placeholder.supabase.co
|
||||
NEXT_PUBLIC_SUPABASE_ANON_KEY: ci-placeholder
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
python scripts/run_quality_gate.py --profile release --frontend-click-timeout 240 2>&1 | tee artifacts/release-quality-gate.log
|
||||
python scripts/run_quality_gate.py --profile release 2>&1 | tee artifacts/release-quality-gate.log
|
||||
|
||||
- name: Upload release quality gate diagnostics
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
@@ -17,19 +17,17 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: npm
|
||||
cache-dependency-path: jyotish-app/package-lock.json
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt -r requirements-dev.txt
|
||||
npm ci --prefix jyotish-app
|
||||
npm ci --prefix frontend
|
||||
- name: Print environment diagnostics
|
||||
run: |
|
||||
python --version
|
||||
node --version
|
||||
npm --version
|
||||
npm --prefix jyotish-app exec -- vite --version
|
||||
test -x jyotish-app/node_modules/.bin/vite
|
||||
- name: Run pytest suite
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
@@ -42,5 +40,11 @@ jobs:
|
||||
path: artifacts/
|
||||
- name: Run legacy runner
|
||||
run: python tests/run_all.py
|
||||
- name: Build frontend
|
||||
run: npm run build --prefix jyotish-app
|
||||
- name: Validate production web
|
||||
env:
|
||||
NEXT_PUBLIC_SUPABASE_URL: https://ci-placeholder.supabase.co
|
||||
NEXT_PUBLIC_SUPABASE_ANON_KEY: ci-placeholder
|
||||
run: |
|
||||
npm test --prefix frontend
|
||||
npm run lint --prefix frontend
|
||||
npm run build --prefix frontend
|
||||
|
||||
Reference in New Issue
Block a user