feat: pglite-test-suite — in-process PGlite pgpm workspace #1
This file contains hidden or 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: PGlite tests | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - hello-world | |
| - pgvector | |
| # No services. No Postgres, no Supabase CLI, no Docker, no MinIO. | |
| # PGlite runs in-process (WASM), so tests need nothing but Node + pnpm. | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Test ${{ matrix.package }} | |
| run: cd ./packages/${{ matrix.package }} && pnpm test |