Skip to content

chore(deps): update oven-sh/setup-bun action to v2 #539

chore(deps): update oven-sh/setup-bun action to v2

chore(deps): update oven-sh/setup-bun action to v2 #539

Workflow file for this run

name: Playwright Tests
on:
pull_request:
jobs:
test-tutorials:
timeout-minutes: 12
runs-on: ubuntu-latest
strategy:
matrix:
tutorial:
- "erc20-paymaster"
- "how-to-test-contracts"
- "daily-spend-limit"
- "signing-txns-with-webauthn"
- "native-aa-multisig"
- "frontend-paymaster"
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
- name: Install Dependencies
run: bun install --frozen-lockfile
- uses: actions/setup-node@v4
- name: Install Playwright Browsers
run: bun playwright install chromium --with-deps
- name: Run Era Test Node
uses: dutterbutter/era-test-node-action@v1
- name: Create Metamask Cache
run: xvfb-run bun setup:mm
- name: Run test for ${{ matrix.tutorial }}
run: |
export TERM=xterm-256color
export COLUMNS=80
export LINES=24
xvfb-run bun test:headful tests/${{ matrix.tutorial }}.spec.ts
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ matrix.tutorial }}
path: |
${{ github.workspace }}/playwright-report/
retention-days: 10