chore: updated github workflows 95342760
Steve · 2025-10-04 15:42 1 file(s) · +182 −15
.github/workflows/test-cli-options.yml +182 −15
315 315
            linter: "biome"
316 316
            test_name: "Shadcn + No RPC + TanStack Query + React Router + Biome"
317 317
318 +
          # React Router MPA
319 +
          # Default template combinations
320 +
          - template: "default"
321 +
            rpc: true
322 +
            tanstackQuery: false
323 +
            router: "reactroutermpa"
324 +
            linter: "eslint"
325 +
            test_name: "Default + RPC + No TanStack Query + React Router MPA + ESLint"
326 +
          - template: "default"
327 +
            rpc: true
328 +
            tanstackQuery: false
329 +
            router: "reactroutermpa"
330 +
            linter: "biome"
331 +
            test_name: "Default + RPC + No TanStack Query + React Router MPA + Biome"
332 +
          - template: "default"
333 +
            rpc: false
334 +
            tanstackQuery: false
335 +
            router: "reactroutermpa"
336 +
            linter: "eslint"
337 +
            test_name: "Default + No RPC + No TanStack Query + React Router MPA + ESLint"
338 +
          - template: "default"
339 +
            rpc: false
340 +
            tanstackQuery: false
341 +
            router: "reactroutermpa"
342 +
            linter: "biome"
343 +
            test_name: "Default + No RPC + No TanStack Query + React Router MPA + Biome"
344 +
          - template: "default"
345 +
            rpc: true
346 +
            tanstackQuery: true
347 +
            router: "reactroutermpa"
348 +
            linter: "eslint"
349 +
            test_name: "Default + RPC + TanStack Query + React Router MPA + ESLint"
350 +
          - template: "default"
351 +
            rpc: true
352 +
            tanstackQuery: true
353 +
            router: "reactroutermpa"
354 +
            linter: "biome"
355 +
            test_name: "Default + RPC + TanStack Query + React Router MPA + Biome"
356 +
          - template: "default"
357 +
            rpc: false
358 +
            tanstackQuery: true
359 +
            router: "reactroutermpa"
360 +
            linter: "eslint"
361 +
            test_name: "Default + No RPC + TanStack Query + React Router MPA + ESLint"
362 +
          - template: "default"
363 +
            rpc: false
364 +
            tanstackQuery: true
365 +
            router: "reactroutermpa"
366 +
            linter: "biome"
367 +
            test_name: "Default + No RPC + TanStack Query + React Router MPA + Biome"
368 +
369 +
          # Tailwind template combinations
370 +
          - template: "tailwind"
371 +
            rpc: true
372 +
            tanstackQuery: false
373 +
            router: "reactroutermpa"
374 +
            linter: "eslint"
375 +
            test_name: "Tailwind + RPC + No TanStack Query + React Router MPA + ESLint"
376 +
          - template: "tailwind"
377 +
            rpc: true
378 +
            tanstackQuery: false
379 +
            router: "reactroutermpa"
380 +
            linter: "biome"
381 +
            test_name: "Tailwind + RPC + No TanStack Query + React Router MPA + Biome"
382 +
          - template: "tailwind"
383 +
            rpc: false
384 +
            tanstackQuery: false
385 +
            router: "reactroutermpa"
386 +
            linter: "eslint"
387 +
            test_name: "Tailwind + No RPC + No TanStack Query + React Router MPA + ESLint"
388 +
          - template: "tailwind"
389 +
            rpc: false
390 +
            tanstackQuery: false
391 +
            router: "reactroutermpa"
392 +
            linter: "biome"
393 +
            test_name: "Tailwind + No RPC + No TanStack Query + React Router MPA + Biome"
394 +
          - template: "tailwind"
395 +
            rpc: true
396 +
            tanstackQuery: true
397 +
            router: "reactroutermpa"
398 +
            linter: "eslint"
399 +
            test_name: "Tailwind + RPC + TanStack Query + React Router MPA + ESLint"
400 +
          - template: "tailwind"
401 +
            rpc: true
402 +
            tanstackQuery: true
403 +
            router: "reactroutermpa"
404 +
            linter: "biome"
405 +
            test_name: "Tailwind + RPC + TanStack Query + React Router MPA + Biome"
406 +
          - template: "tailwind"
407 +
            rpc: false
408 +
            tanstackQuery: true
409 +
            router: "reactroutermpa"
410 +
            linter: "eslint"
411 +
            test_name: "Tailwind + No RPC + TanStack Query + React Router MPA + ESLint"
412 +
          - template: "tailwind"
413 +
            rpc: false
414 +
            tanstackQuery: true
415 +
            router: "reactroutermpa"
416 +
            linter: "biome"
417 +
            test_name: "Tailwind + No RPC + TanStack Query + React Router MPA + Biome"
418 +
419 +
          # Shadcn template combinations
420 +
          - template: "shadcn"
421 +
            rpc: true
422 +
            tanstackQuery: false
423 +
            router: "reactroutermpa"
424 +
            linter: "eslint"
425 +
            test_name: "Shadcn + RPC + No TanStack Query + React Router MPA + ESLint"
426 +
          - template: "shadcn"
427 +
            rpc: true
428 +
            tanstackQuery: false
429 +
            router: "reactroutermpa"
430 +
            linter: "biome"
431 +
            test_name: "Shadcn + RPC + No TanStack Query + React Router MPA + Biome"
432 +
          - template: "shadcn"
433 +
            rpc: false
434 +
            tanstackQuery: false
435 +
            router: "reactroutermpa"
436 +
            linter: "eslint"
437 +
            test_name: "Shadcn + No RPC + No TanStack Query + React Router MPA + ESLint"
438 +
          - template: "shadcn"
439 +
            rpc: false
440 +
            tanstackQuery: false
441 +
            router: "reactroutermpa"
442 +
            linter: "biome"
443 +
            test_name: "Shadcn + No RPC + No TanStack Query + React Router MPA + Biome"
444 +
          - template: "shadcn"
445 +
            rpc: true
446 +
            tanstackQuery: true
447 +
            router: "reactroutermpa"
448 +
            linter: "eslint"
449 +
            test_name: "Shadcn + RPC + TanStack Query + React Router MPA + ESLint"
450 +
          - template: "shadcn"
451 +
            rpc: true
452 +
            tanstackQuery: true
453 +
            router: "reactroutermpa"
454 +
            linter: "biome"
455 +
            test_name: "Shadcn + RPC + TanStack Query + React Router MPA + Biome"
456 +
          - template: "shadcn"
457 +
            rpc: false
458 +
            tanstackQuery: true
459 +
            router: "reactroutermpa"
460 +
            linter: "eslint"
461 +
            test_name: "Shadcn + No RPC + TanStack Query + React Router MPA + ESLint"
462 +
          - template: "shadcn"
463 +
            rpc: false
464 +
            tanstackQuery: true
465 +
            router: "reactroutermpa"
466 +
            linter: "biome"
467 +
            test_name: "Shadcn + No RPC + TanStack Query + React Router MPA + Biome"
468 +
318 469
          # TanStack Router
319 470
          # Default template combinations
320 471
          - template: "default"
493 644
494 645
          # Build the command with conditional flags
495 646
          cmd="./dist/index.js test-project-${{ matrix.template }}-${{ matrix.rpc }}-${{ matrix.tanstackQuery }}-${{ matrix.router }}-${{ matrix.linter }} --yes --template ${{ matrix.template }}"
496 -
          
647 +
497 648
          if [ "${{ matrix.rpc }}" = "true" ]; then
498 649
            cmd="$cmd --rpc"
499 650
          fi
500 -
          
651 +
501 652
          if [ "${{ matrix.tanstackQuery }}" = "true" ]; then
502 653
            cmd="$cmd --tsquery"
503 654
          fi
504 -
          
655 +
505 656
          if [ "${{ matrix.router }}" != "none" ]; then
506 657
            cmd="$cmd --router ${{ matrix.router }}"
507 658
          fi
508 -
          
659 +
509 660
          cmd="$cmd --linter ${{ matrix.linter }}"
510 -
          
661 +
511 662
          echo "Running: $cmd"
512 663
          eval $cmd
513 664
536 687
            exit 1
537 688
          fi
538 689
539 -
          # Check for expected files
540 -
          if [ ! -f "client/dist/index.html" ]; then
541 -
            echo "❌ Client build incomplete - index.html not found"
542 -
            exit 1
543 -
          fi
690 +
          # Check for expected files based on router type
691 +
          if [ "${{ matrix.router }}" = "reactroutermpa" ]; then
692 +
            # React Router MPA has different build structure
693 +
            if [ ! -d "client/dist/client" ]; then
694 +
              echo "❌ Client build incomplete - dist/client directory not found"
695 +
              exit 1
696 +
            fi
544 697
545 -
          if [ ! -f "server/dist/index.js" ]; then
546 -
            echo "❌ Server build incomplete - index.js not found"
547 -
            exit 1
698 +
            if [ ! -d "client/dist/server" ]; then
699 +
              echo "❌ Client build incomplete - dist/server directory not found"
700 +
              exit 1
701 +
            fi
702 +
703 +
            echo "✅ React Router MPA build verification passed for ${{ matrix.test_name }}"
704 +
          else
705 +
            # Standard build structure
706 +
            if [ ! -f "client/dist/index.html" ]; then
707 +
              echo "❌ Client build incomplete - index.html not found"
708 +
              exit 1
709 +
            fi
710 +
711 +
            if [ ! -f "server/dist/index.js" ]; then
712 +
              echo "❌ Server build incomplete - index.js not found"
713 +
              exit 1
714 +
            fi
715 +
716 +
            echo "✅ Build verification passed for ${{ matrix.test_name }}"
548 717
          fi
549 -
550 -
          echo "✅ Build verification passed for ${{ matrix.test_name }}"
551 718
552 719
      - name: Run linter on generated project
553 720
        run: |