Skip to content

E2e/playwright

E2e/playwright #7

Workflow file for this run

name: E2E Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
type: [ready_for_review]
jobs:
e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push (see auto-commit below)
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn e2e
env:
VITE_CHAIN_RPC_URL: ${{ secrets.VITE_CHAIN_RPC_URL }}
VITE_CARBON_API_KEY: ${{ secrets.VITE_CARBON_API_KEY }}
VITE_DEV_MODE: true
# TODO: Update with the new secret when set
TENDERLY_ACCESS_KEY: ${{ secrets.VITE_TENDERLY_ACCESS_KEY }}
CI: true
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[CI] Update Screenshots'