@@ -183,76 +183,4 @@ jobs:
183183 path : playwright-report/
184184 retention-days : 30
185185
186- wallets :
187- name : wallets (headed)
188- timeout-minutes : 15
189- # Use more powerful instance for browser automation with MetaMask
190- # Options:
191- # - blacksmith-8vcpu-ubuntu-2404 (8 vCPUs)
192- # - blacksmith-16vcpu-ubuntu-2404 (16 vCPUs)
193- # - ubuntu-latest-8-cores (GitHub hosted)
194- # - ubuntu-latest-16-cores (GitHub hosted)
195- runs-on : blacksmith-8vcpu-ubuntu-2404
196- steps :
197- - uses : actions/checkout@v4
198- - uses : ./.github/actions/setup-base
199-
200- - name : Setup virtual display
201- run : |
202- sudo apt-get update
203- sudo apt-get install -y xvfb
204- export DISPLAY=:99
205- Xvfb :99 -screen 0 1280x720x24 > /dev/null 2>&1 &
206186
207- - name : Setup Playwright for wallet tests
208- run : |
209- echo "Cleaning Playwright cache..."
210- rm -rf ~/.cache/ms-playwright || true
211-
212- echo "Checking Playwright version..."
213- pnpm exec playwright --version
214-
215- echo "Installing system dependencies..."
216- pnpm exec playwright install-deps chromium
217-
218- echo "Installing Playwright browsers..."
219- pnpm exec playwright install chromium
220-
221- echo "Verifying installation..."
222- # List what was actually installed
223- echo "Playwright cache contents:"
224- ls -la ~/.cache/ms-playwright/ 2>/dev/null || echo "Cache directory not found"
225-
226- # Find the actual chromium executable
227- CHROMIUM_PATH=$(find ~/.cache/ms-playwright -name "chrome" -type f -executable 2>/dev/null | head -1)
228- if [ -z "$CHROMIUM_PATH" ]; then
229- echo "ERROR: Chromium executable not found!"
230- echo "Contents of Playwright cache:"
231- find ~/.cache/ms-playwright -type f -name "*chrome*" 2>/dev/null || echo "No chrome files found"
232-
233- echo "Forcing reinstall with explicit version..."
234- # Install with the exact same version that's in the project
235- npx playwright@$(node -pe "require('./package.json').devDependencies['@playwright/test']") install chromium --force
236- else
237- echo "✅ Chromium found at: $CHROMIUM_PATH"
238- ls -la "$CHROMIUM_PATH"
239- fi
240-
241- # - name: Rebuild native dependencies
242- # run: pnpm rebuild -r
243-
244- - name : Run wallet tests
245- run : |
246- parallel --lb --halt now,success=1,fail=1 ::: \
247- "pnpm dev" \
248- "pnpm wait-on http://localhost:3000 && DISPLAY=:99 pnpm e2e:wallet --headed"
249- env :
250- SECRET_WORDS : ${{ secrets.SECRET_WORDS }}
251- DISPLAY : :99
252-
253- - uses : actions/upload-artifact@v4
254- if : always()
255- with :
256- name : wallets-report
257- path : playwright-report/
258- retention-days : 30
0 commit comments