Skip to content

Nux app builder

Nux app builder #3457

Workflow file for this run

name: Prettier and Build Check
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
name: Build and Test
defaults:
run:
working-directory: mcpjam-inspector
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24.14.0"
- name: Install dependencies
run: |
npm ci
- name: Install SDK dependencies
run: |
npm --prefix ../sdk ci
- name: Build project
run: |
echo "🏗️ Building project..."
npm run build
echo "✅ Build completed successfully!"
- name: Test production start
run: |
echo "🧪 Testing production start..."
timeout 3s npm start || EXIT_CODE=$?
if [ $EXIT_CODE -eq 124 ]; then
echo "✅ Production server started successfully (timed out as expected)"
exit 0
elif [ $EXIT_CODE -eq 0 ]; then
echo "✅ Production server started successfully"
exit 0
else
echo "❌ Production server failed to start with exit code $EXIT_CODE"
exit 1
fi