configure wagmi mock connector for testing #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
HARDHAT_RPC_URL: ${{ env.HARDHAT_RPC_URL }} | ||
Check failure on line 11 in .github/workflows/integration.yml
|
||
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 |