Skip to content

configure wagmi mock connector for testing #20

configure wagmi mock connector for testing

configure wagmi mock connector for testing #20

Workflow file for this run

name: Integration
on:
pull_request:
branches: [main, development]
env:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: xxxx
NEXT_PUBLIC_QUIKNODE_URL: xxxx
NEXT_PUBLIC_ALCHEMY_MAINNET_API_KEY: xxxx
jobs:
linting:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.6
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm lint
build:
name: Next Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.6
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Install Dependencies
run: pnpm install
- name: Run build
run: pnpm ci:build
test:
name: Playwright Tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9.0.6
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
- name: Install Dependencies
run: pnpm install
- name: Run build
run: pnpm ci:build
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm run ci:test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30