Nux app builder #3457
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |