mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
* chore(studio): move Query to pgMeta add tests - Move the Query builder from studio to pgMeta - Add e2e tests over the generated sql to ensure syntax and runtime result over pg database - fix bug with orde by for table with undefined column * chore: fix query import path * chore: set ES target for lint * chore: add github action for pg-meta test package * chore: add tsconfig to sparse checkout
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: PG Meta Tests
|
|
|
|
on:
|
|
push:
|
|
branches: ['master']
|
|
paths:
|
|
- 'packages/pg-meta/**/*'
|
|
pull_request:
|
|
branches: ['master']
|
|
paths:
|
|
- 'packages/pg-meta/**/*'
|
|
|
|
# Cancel old builds on new commit for same workflow + branch/PR
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: |
|
|
packages/pg-meta
|
|
packages/tsconfig
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
name: Install pnpm
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install deps
|
|
run: pnpm i
|
|
|
|
- name: Run tests
|
|
run: pnpm --filter=@supabase/pg-meta run test
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
directory: packages/pg-meta/coverage
|
|
flags: pg-meta
|