Skip to content

PoolFees event handler refactoring and user centric entity creation #410

PoolFees event handler refactoring and user centric entity creation

PoolFees event handler refactoring and user centric entity creation #410

Workflow file for this run

name: PNPM Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# Install base workspace deps (exclude generated before it exists)
- name: Install dependencies (base)
run: pnpm install --no-frozen-lockfile --filter '!generated'
# Run codegen and allow lockfile writes during that step
- name: Generate types
env:
PNPM_CONFIG_FROZEN_LOCKFILE: "false"
run: |
pnpm run codegen
test -f generated/src/Types.gen.ts || (echo "Types.gen.ts missing after codegen" && exit 1)
# Now that generated/package.json exists, sync deps across workspaces
- name: Install dependencies (after codegen)
run: pnpm -r install --no-frozen-lockfile
- name: QA
run: pnpm run qa
- name: Run tests
run: pnpm test