@@ -38,12 +38,11 @@ jobs:
3838 steps :
3939 - name : Display workflow inputs
4040 run : |
41- echo "🚀 Starting E2E Local Dist Tests"
42- echo "📋 Workflow Inputs:"
43- echo " - Branch: ${{ github.event.inputs.branch || github.ref_name }}"
44- echo " - Build packages: ${{ github.event.inputs.run_build || 'true' }}"
45- echo " - Test timeout: ${{ github.event.inputs.test_timeout || '15' }} minutes"
46- echo " - Triggered by: ${{ github.event_name }}"
41+ echo "Starting E2E Local Dist Tests"
42+ echo "Branch: ${{ github.event.inputs.branch || github.ref_name }}"
43+ echo "Build packages: ${{ github.event.inputs.run_build || 'true' }}"
44+ echo "Test timeout: ${{ github.event.inputs.test_timeout || '15' }} minutes"
45+ echo "Triggered by: ${{ github.event_name }}"
4746
4847 - name : Checkout repository
4948 uses : actions/checkout@v3
@@ -62,34 +61,34 @@ jobs:
6261 - name : Build all packages
6362 if : ${{ github.event.inputs.run_build != 'false' }}
6463 run : |
65- echo "🔨 Building UIX SDK packages..."
64+ echo "Building UIX SDK packages..."
6665 npm run build
67- echo "✅ All packages built successfully"
66+ echo "All packages built successfully"
6867
6968 - name : Skip build step
7069 if : ${{ github.event.inputs.run_build == 'false' }}
7170 run : |
72- echo "⏭️ Skipping package build (run_build = false)"
73- echo "🔍 Checking if dist folders exist..."
74- ls -la packages/*/dist || echo "⚠️ Some dist folders missing - tests may fail"
71+ echo "Skipping package build (run_build = false)"
72+ echo "Checking if dist folders exist..."
73+ ls -la packages/*/dist || echo "Some dist folders missing - tests may fail"
7574
7675 - name : Install host app dependencies
7776 working-directory : e2e/local-dist/host-app
7877 run : |
7978 echo "Installing host app with local packages..."
8079 npm install
81- echo "✅ Host app dependencies installed"
80+ echo "Host app dependencies installed"
8281
8382 - name : Install guest app dependencies
8483 working-directory : e2e/local-dist/guest-app
8584 run : |
8685 echo "Installing guest app with local packages..."
8786 npm install
88- echo "✅ Guest app dependencies installed"
87+ echo "Guest app dependencies installed"
8988
9089 - name : Copy build files to applications
9190 run : |
92- echo "Copy local packages..."
91+ echo "Copying local packages..."
9392 npm run copy:local-dist
9493
9594 - name : Start host app
@@ -120,30 +119,30 @@ jobs:
120119
121120 echo "Waiting for servers to respond..."
122121 wait-on http://localhost:3000 http://localhost:3002 --timeout 180000 --interval 3000
123- echo "✅ Both applications are ready!"
122+ echo "Both applications are ready!"
124123
125124 - name : Verify applications are responding
126125 run : |
127126 echo "Testing host app response..."
128- wget --spider --quiet http://localhost:3000 && echo "✅ Host app responding" || echo "❌ Host app not responding"
127+ wget --spider --quiet http://localhost:3000 && echo "Host app responding" || echo "Host app not responding"
129128
130129 echo "Testing guest app response..."
131- wget --spider --quiet http://localhost:3002 && echo "✅ Guest app responding" || echo "❌ Guest app not responding"
130+ wget --spider --quiet http://localhost:3002 && echo "Guest app responding" || echo "Guest app not responding"
132131
133132 - name : Install test dependencies
134133 working-directory : e2e/local-dist/tests
135134 run : |
136135 echo "Installing test dependencies..."
137136 npm install
138- echo "✅ Test dependencies installed"
137+ echo "Test dependencies installed"
139138
140139 - name : Run E2E tests
141140 working-directory : e2e/local-dist/tests
142141 timeout-minutes : ${{ fromJson(github.event.inputs.test_timeout || '10') }}
143142 run : |
144- echo "🧪 Running E2E tests with local dist packages..."
145- echo "📍 Branch: ${{ github.event.inputs.branch || github.ref_name }}"
146- echo "🏗️ Build enabled: ${{ github.event.inputs.run_build || 'true' }}"
143+ echo "Running E2E tests with local dist packages..."
144+ echo "Branch: ${{ github.event.inputs.branch || github.ref_name }}"
145+ echo "Build enabled: ${{ github.event.inputs.run_build || 'true' }}"
147146 npm test
148147 env :
149148 CI : true
@@ -185,7 +184,6 @@ jobs:
185184 kill $GUEST_PID 2>/dev/null || echo "Guest process already stopped"
186185 fi
187186
188- # Kill any remaining processes on our ports
189187 pkill -f "npm.*start.*3000" 2>/dev/null || echo "No remaining processes on port 3000"
190188 pkill -f "npm.*start.*3002" 2>/dev/null || echo "No remaining processes on port 3002"
191189 pkill -f "node.*3000" 2>/dev/null || echo "No node processes on port 3000"
@@ -202,7 +200,7 @@ jobs:
202200 run : |
203201 echo "## UIX SDK Local Dist E2E Test Summary" >> $GITHUB_STEP_SUMMARY
204202 echo "" >> $GITHUB_STEP_SUMMARY
205- echo "### 📋 Test Configuration" >> $GITHUB_STEP_SUMMARY
203+ echo "### Test Configuration" >> $GITHUB_STEP_SUMMARY
206204 echo "- **Branch**: \`${{ github.event.inputs.branch || github.ref_name }}\`" >> $GITHUB_STEP_SUMMARY
207205 echo "- **Build Packages**: ${{ github.event.inputs.run_build || 'true' }}" >> $GITHUB_STEP_SUMMARY
208206 echo "- **Test Timeout**: ${{ github.event.inputs.test_timeout || '15' }} minutes" >> $GITHUB_STEP_SUMMARY
@@ -211,13 +209,13 @@ jobs:
211209 echo "" >> $GITHUB_STEP_SUMMARY
212210
213211 if [ "${{ needs.build-and-test.result }}" == "success" ]; then
214- echo "✅ **Status**: All tests passed with local dist packages" >> $GITHUB_STEP_SUMMARY
215- echo "🎯 **Build Type**: Local development build" >> $GITHUB_STEP_SUMMARY
216- echo "📦 **Packages**: Built from source in \`./packages/\`" >> $GITHUB_STEP_SUMMARY
212+ echo "**Status**: All tests passed with local dist packages" >> $GITHUB_STEP_SUMMARY
213+ echo "**Build Type**: Local development build" >> $GITHUB_STEP_SUMMARY
214+ echo "**Packages**: Built from source in \`./packages/\`" >> $GITHUB_STEP_SUMMARY
217215 else
218- echo "❌ **Status**: Tests failed with local dist packages" >> $GITHUB_STEP_SUMMARY
219- echo "🔍 **Next Steps**: Check build logs and test artifacts" >> $GITHUB_STEP_SUMMARY
220- echo "📁 **Artifacts**: \`local-dist-test-artifacts-${{ github.event.inputs.branch || github.ref_name }}-${{ github.run_id }}\`" >> $GITHUB_STEP_SUMMARY
216+ echo "**Status**: Tests failed with local dist packages" >> $GITHUB_STEP_SUMMARY
217+ echo "**Next Steps**: Check build logs and test artifacts" >> $GITHUB_STEP_SUMMARY
218+ echo "**Artifacts**: \`local-dist-test-artifacts-${{ github.event.inputs.branch || github.ref_name }}-${{ github.run_id }}\`" >> $GITHUB_STEP_SUMMARY
221219 fi
222220
223221 echo "" >> $GITHUB_STEP_SUMMARY
0 commit comments