Skip to content

Merge pull request #41 from 2wheeh/fix/partial-props #65

Merge pull request #41 from 2wheeh/fix/partial-props

Merge pull request #41 from 2wheeh/fix/partial-props #65

Workflow file for this run

name: Run E2E Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
playwright:
name: 'Playwright Tests'
# Disabled: `libsodium-wrappers-sumo` ESM bundle fails under Next/Webpack in CI
# ("Module not found: Can't resolve './libsodium-sumo.mjs'").
# Re-enable once libsodium is removed or the upstream packaging issue is fixed.
if: false
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: '9.15.4'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm run build
- name: Set Up Starship Infrastructure
id: starship-infra
uses: hyperweb-io/starship-action@1.0.0
with:
config: e2e/starship/configs/osmosis-cosmoshub.yaml
- name: Install Playwright browsers
run: cd e2e && npx playwright install --with-deps chromium
# 運行所有 E2E 測試
- name: Run All E2E Tests
run: pnpm run test:e2e
# 上傳測試報告
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 30
# 上傳測試截圖
- name: Upload screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-screenshots
path: e2e/test-results/
retention-days: 7