Skip to content

refactor: update cookieBanner #75

refactor: update cookieBanner

refactor: update cookieBanner #75

Workflow file for this run

name: Playwright E2E Tests
on:
push:
branches:
- main
- development
paths:
- 'web/**'
- '.github/workflows/tests-e2e.yml'
pull_request:
branches:
- main
- development
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: './web'
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
node-version: 20.15.0
- name: Enable pnpm
run: corepack enable pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps
- name: Run Playwright tests
env:
NEXT_PUBLIC_CONTRACT_ADDRESS: ${{ vars.NEXT_PUBLIC_CONTRACT_ADDRESS }}
NEXT_PUBLIC_THIRDWEB_ID: ${{ vars.NEXT_PUBLIC_THIRDWEB_ID }}
NEXT_PUBLIC_NET: ${{ vars.NEXT_PUBLIC_NET }}
run: pnpm test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-coverage
path: web/playwright-coverage/
retention-days: 30
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
flags: e2e
name: e2e-tests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true