Merge pull request #358 from abimbolaalabi/recipent #261
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: Playwright E2E Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: Run E2E Tests | |
| runs-on: ubuntu-latest | |
| env: | |
| TEST_WALLET_ADDRESS: "GDEMOXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
| TEST_SIGNATURE: "mock-signature" | |
| # --- ADDED MOCK ENV VARS FOR CI --- | |
| SESSION_PASSWORD: "dummy-test-session-password-must-be-32-chars" | |
| SOROBAN_RPC_URL: "https://soroban-testnet.stellar.org" | |
| SOROBAN_NETWORK_PASSPHRASE: "Test SDF Network ; September 2015" | |
| ANCHOR_WEBHOOK_SECRET: "dummy-test-secret" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run Unit Tests | |
| run: npm run test | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Run Playwright tests | |
| run: npm run test:e2e | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 14 |