@@ -591,112 +591,6 @@ jobs:
591591 - name : Cleanup
592592 run : rm -rf /tmp/test-project
593593
594- # macOS x64 verification - only runs on actual publishes (slow runner)
595- verify-macos-x64 :
596- name : Verify macOS (x64)
597- # Skip on PRs - x64 runner is slow and arm64 provides sufficient coverage
598- if : github.event_name != 'pull_request'
599- timeout-minutes : 30
600- runs-on : macos-13
601-
602- steps :
603- - name : Checkout (for scripts)
604- uses : actions/checkout@v4
605-
606- - name : Setup Node.js
607- uses : actions/setup-node@v4
608- with :
609- node-version : " 20"
610-
611- - name : Get package spec
612- id : pkg
613- run : |
614- VERSION="${{ inputs.version || 'latest' }}"
615- if [ "$VERSION" = "latest" ]; then
616- SPEC="agent-relay"
617- else
618- SPEC="agent-relay@${VERSION}"
619- fi
620- echo "spec=$SPEC" >> $GITHUB_OUTPUT
621- echo "Testing: $SPEC"
622-
623- - name : Wait for npm propagation
624- if : inputs.version != 'latest'
625- run : |
626- echo "Waiting for npm to propagate version ${{ inputs.version }}..."
627- FOUND=0
628- for i in {1..30}; do
629- if npm view agent-relay@${{ inputs.version }} version 2>/dev/null; then
630- echo "Package found on npm registry"
631- FOUND=1
632- break
633- fi
634- echo "Attempt $i: Package not yet available, waiting 10s..."
635- sleep 10
636- done
637- if [ "$FOUND" -eq 0 ]; then
638- echo "ERROR: Package agent-relay@${{ inputs.version }} not found on npm after 5 minutes"
639- exit 1
640- fi
641-
642- - name : " Test: npm install"
643- run : |
644- mkdir -p /tmp/test-project
645- cd /tmp/test-project
646- npm init -y
647- npm install ${{ steps.pkg.outputs.spec }}
648-
649- - name : " Test: CLI version"
650- run : |
651- cd /tmp/test-project
652- VERSION=$(npx agent-relay --version)
653- echo "Version: $VERSION"
654- if echo "$VERSION" | grep -qE '[0-9]+\.[0-9]+\.[0-9]+'; then
655- echo "Version check passed"
656- else
657- exit 1
658- fi
659-
660- - name : " Test: relay-pty binary"
661- run : |
662- cd /tmp/test-project
663- BIN_DIR="./node_modules/agent-relay/bin"
664-
665- if [ -x "$BIN_DIR/relay-pty" ]; then
666- echo "relay-pty is executable"
667- OUTPUT=$("$BIN_DIR/relay-pty" --help 2>&1) || true
668- if echo "$OUTPUT" | grep -q "PTY wrapper"; then
669- echo "relay-pty --help check passed"
670- else
671- echo "relay-pty --help failed"
672- exit 1
673- fi
674- else
675- echo "relay-pty is NOT executable"
676- exit 1
677- fi
678-
679- - name : " Test: Darwin x64 binary"
680- run : |
681- cd /tmp/test-project
682- BIN_DIR="./node_modules/agent-relay/bin"
683- DARWIN_BINARY="relay-pty-darwin-x64"
684-
685- if [ -f "$BIN_DIR/$DARWIN_BINARY" ] && [ -x "$BIN_DIR/$DARWIN_BINARY" ]; then
686- echo "Darwin x64 binary found and executable"
687- OUTPUT=$("$BIN_DIR/$DARWIN_BINARY" --help 2>&1) || true
688- if echo "$OUTPUT" | grep -q "PTY wrapper"; then
689- echo "Darwin x64 binary works"
690- else
691- echo "WARNING: Unexpected output"
692- fi
693- else
694- echo "Darwin x64 binary not found, using generic"
695- fi
696-
697- - name : Cleanup
698- run : rm -rf /tmp/test-project
699-
700594 # Docker-based verification (more isolated)
701595 verify-docker :
702596 name : Verify Docker (Node ${{ matrix.node }})
@@ -751,7 +645,7 @@ jobs:
751645
752646 summary :
753647 name : Verification Summary
754- needs : [verify, verify-macos-arm64, verify-macos-x64, verify- docker]
648+ needs : [verify, verify-macos-arm64, verify-docker]
755649 runs-on : ubuntu-latest
756650 if : always()
757651
@@ -773,15 +667,6 @@ jobs:
773667 echo "| Architecture | Status |" >> $GITHUB_STEP_SUMMARY
774668 echo "|--------------|--------|" >> $GITHUB_STEP_SUMMARY
775669 echo "| arm64 (M1/M2) | ${{ needs.verify-macos-arm64.result == 'success' && '✅' || '❌' }} |" >> $GITHUB_STEP_SUMMARY
776- # x64 is skipped on PRs, show skipped status appropriately
777- X64_STATUS="${{ needs.verify-macos-x64.result }}"
778- if [ "$X64_STATUS" = "success" ]; then
779- echo "| x64 (Intel) | ✅ |" >> $GITHUB_STEP_SUMMARY
780- elif [ "$X64_STATUS" = "skipped" ]; then
781- echo "| x64 (Intel) | ⏭️ Skipped (PR) |" >> $GITHUB_STEP_SUMMARY
782- else
783- echo "| x64 (Intel) | ❌ |" >> $GITHUB_STEP_SUMMARY
784- fi
785670 echo "" >> $GITHUB_STEP_SUMMARY
786671 echo "### Docker Tests (Linux)" >> $GITHUB_STEP_SUMMARY
787672 echo "| Node Version | Status |" >> $GITHUB_STEP_SUMMARY
@@ -791,9 +676,7 @@ jobs:
791676 echo "| Node 22 | ${{ needs.verify-docker.result == 'success' && '✅' || '❌' }} |" >> $GITHUB_STEP_SUMMARY
792677 echo "" >> $GITHUB_STEP_SUMMARY
793678 echo "### Overall" >> $GITHUB_STEP_SUMMARY
794- # x64 can be skipped on PRs, so we check for success OR skipped
795- X64_OK="${{ needs.verify-macos-x64.result == 'success' || needs.verify-macos-x64.result == 'skipped' }}"
796- if [ "${{ needs.verify.result }}" = "success" ] && [ "${{ needs.verify-macos-arm64.result }}" = "success" ] && [ "$X64_OK" = "true" ] && [ "${{ needs.verify-docker.result }}" = "success" ]; then
679+ if [ "${{ needs.verify.result }}" = "success" ] && [ "${{ needs.verify-macos-arm64.result }}" = "success" ] && [ "${{ needs.verify-docker.result }}" = "success" ]; then
797680 echo "✅ All verification tests passed!" >> $GITHUB_STEP_SUMMARY
798681 else
799682 echo "❌ Some verification tests failed" >> $GITHUB_STEP_SUMMARY
0 commit comments