EGN-326 - Furo refactor #612
Workflow file for this run
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: Sushi - apps / pool / e2e | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- ".github/workflows/apps-pool-e2e.yml" | |
- "apps/earn/**" | |
- "config/graph/**" | |
- "config/nextjs/**" | |
- "config/react-query/**" | |
- "config/router/**" | |
- "config/tailwindcss/**" | |
- "config/typescript/**" | |
- "config/viem/**" | |
- "config/wagmi/**" | |
- "packages/**" | |
defaults: | |
run: | |
# change this if your nextjs app does not live at the root of the repo | |
working-directory: ./apps/earn | |
# https://playwright.dev/docs/ci#sharding | |
env: | |
CI: true | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
NODE_OPTIONS: --max-old-space-size=8192 | |
NEXT_TELEMETRY_DISABLED: 1 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
env: | |
ANVIL_BLOCK_NUMBER: 42259027 | |
strategy: | |
matrix: | |
chain-id: [137] | |
node-version: [18] | |
pnpm-version: [7.9.5] | |
block-number: [42259027] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
submodules: true | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ matrix.pnpm-version }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Cache pnpm | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: pnpm- | |
- name: Install dependencies | |
run: pnpm install | |
working-directory: . | |
- name: Install playwright | |
run: pnpm exec playwright install --with-deps chromium | |
- name: Forge RPC cache | |
uses: actions/cache@v3 | |
with: | |
path: "$HOME/.foundry/cache" | |
key: rpc-cache-${{ matrix.node-version }}-${{ matrix.chain-id }}-${{ matrix.block-number }} | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Test pools app | |
run: pnpm test-earn-app | |
env: | |
ALCHEMY_ID: ${{ secrets.NEXT_PUBLIC_ALCHEMY_ID }} | |
PLAYWRIGHT_URL: http://localhost:3000/pools | |
CHAIN_ID: ${{ matrix.chain-id }} | |
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }} | |
NEXT_PUBLIC_ALCHEMY_ID: ${{ secrets.NEXT_PUBLIC_ALCHEMY_ID }} | |
NEXT_PUBLIC_TEST: true | |
working-directory: . | |
- name: Upload test results | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: playwright-report | |
path: ./apps/earn/test-results/ |