chore: split e2e based on envs #5
Workflow file for this run
This file contains 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 Tests (Playground) | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
e2e: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./apps/idos-sdk-e2e | |
env: | |
BASE_URL: ${{secrets.IDOS_E2E_BASE_URL}} | |
WALLET_SEED_PHRASE: ${{ secrets.IDOS_E2E_WALLET_SEED_PHRASE }} | |
WALLET_PASSWORD: ${{ secrets.IDOS_E2E_WALLET_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: './.node_version' | |
working-directory: ./apps/idos-sdk-e2e | |
- name: Install dependencies | |
run: pnpm i | |
- name: Install Playwright | |
run: pnpm playwright install --with-deps chromium | |
- name: Build Synpress cache | |
run: xvfb-run npx synpress tests/wallet-setup | |
- name: Run Playwright tests | |
run: xvfb-run npx playwright test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |