database schema manual deployments #4220
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: Main | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Codegen | |
run: cd packages/core/ && pnpm wagmi generate | |
- name: Typecheck | |
run: pnpm typecheck | |
- name: Test (types) | |
run: pnpm --filter core test:typecheck | |
- name: Lint | |
run: pnpm lint | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build | |
run: pnpm build | |
test: | |
name: Test [core] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
database: [Postgres, PGlite] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup Postgres | |
if: ${{ matrix.database == 'Postgres' }} | |
uses: ikalnytskyi/action-setup-postgres@v7 | |
id: postgres | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Codegen | |
run: cd packages/core/ && pnpm wagmi generate | |
- name: Test | |
run: pnpm --filter core test | |
env: | |
DATABASE_URL: ${{ matrix.database == 'Postgres' && steps.postgres.outputs.connection-uri || '' }} | |
test-create-ponder: | |
name: Test [create-ponder] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Test | |
run: pnpm --filter create-ponder test | |
env: | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
test-common: | |
name: Test [common] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
runtime-version: ["Node", "Bun"] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9.10.0 | |
- name: Install Node | |
if: ${{ matrix.runtime-version == 'Node' }} | |
uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
node-version: 20 | |
- name: Install Bun | |
if: ${{ matrix.runtime-version == 'Bun' }} | |
uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
shell: bash | |
run: pnpm install --frozen-lockfile | |
- name: Test Node | |
if: ${{ matrix.runtime-version == 'Node' }} | |
run: cd packages/common && pnpm test:typecheck | |
- name: Test Bun | |
if: ${{ matrix.runtime-version == 'Bun' }} | |
run: cd packages/common && bun test |