Skip to content

docs: record ui phases and link the dashboard #2

docs: record ui phases and link the dashboard

docs: record ui phases and link the dashboard #2

Workflow file for this run

name: ui
on:
push:
branches: [main]
paths: ["frontend/**", "ragproof/ui/**", ".github/workflows/ui.yml"]
pull_request:
paths: ["frontend/**", "ragproof/ui/**", ".github/workflows/ui.yml"]
jobs:
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm run format:check
- run: npm run test
- run: npm run build
- name: scan bundle for external resource loads
working-directory: .
run: |
! grep -rEl '(src|href)[[:space:]]*=[[:space:]]*["'\'']https?://' ragproof/ui/static/index.html
! grep -rEl 'url\((["'\'']?)https?://' ragproof/ui/static --include='*.css'