55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: graph-ui-sim
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
graph_api:
|
|
description: "Graph API base URL"
|
|
required: true
|
|
default: "http://localhost:5000"
|
|
graph_ui:
|
|
description: "Graph UI base URL"
|
|
required: true
|
|
default: "http://localhost:4200"
|
|
perf_budget_ms:
|
|
description: "Perf budget in ms"
|
|
required: false
|
|
default: "3000"
|
|
|
|
jobs:
|
|
ui-and-sim:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "18"
|
|
|
|
- name: Install Playwright deps
|
|
run: npx playwright install --with-deps chromium
|
|
|
|
- name: Run UI perf probe
|
|
env:
|
|
GRAPH_UI_BASE: ${{ github.event.inputs.graph_ui }}
|
|
GRAPH_UI_BUDGET_MS: ${{ github.event.inputs.perf_budget_ms }}
|
|
OUT: out/graph-ui-perf
|
|
run: |
|
|
npx ts-node scripts/graph/ui-perf.ts
|
|
|
|
- name: Run simulation smoke
|
|
env:
|
|
TARGET: ${{ github.event.inputs.graph_api }}
|
|
run: |
|
|
chmod +x scripts/graph/simulation-smoke.sh
|
|
scripts/graph/simulation-smoke.sh
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: graph-ui-sim
|
|
path: |
|
|
out/graph-ui-perf/**
|
|
out/graph-sim/**
|