Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"commit": false,
"linked": [],
"updateInternalDependencies": "patch",
"ignore": ["@solana/web3-compat-parity-tests"]
"ignore": ["@solana/web3-compat-parity-tests", "@solana/e2e"]
}
79 changes: 79 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: E2E Tests

on:
pull_request:
paths:
- 'packages/**'
- 'examples/**'
- 'tests/e2e/**'
- '.github/workflows/e2e.yml'
push:
branches:
- main
paths:
- 'packages/**'
- 'examples/**'
- 'tests/e2e/**'
- '.github/workflows/e2e.yml'
# Allow manual trigger
workflow_dispatch:

jobs:
e2e:
name: E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.20.0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm

- name: Cache Turbo
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-e2e-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-e2e-
${{ runner.os }}-turbo-

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build packages
run: pnpm build

- name: Install Playwright browsers
run: pnpm --filter @solana/e2e exec playwright install chromium --with-deps

- name: Run E2E tests
run: pnpm --filter @solana/e2e test
env:
CI: true

- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: tests/e2e/playwright-report/
retention-days: 7

- name: Upload test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results
path: tests/e2e/test-results/
retention-days: 7
Loading