-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (65 loc) · 1.73 KB
/
ci.yml
File metadata and controls
77 lines (65 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Supabase tests
on:
push:
pull_request:
types: [opened, synchronized, reopened]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
container: pyramation/node-sqitch:20.12.0
continue-on-error: true
strategy:
fail-fast: false
matrix:
package:
- supabase
- rls-demo
env:
PGHOST: pg_db
PGPORT: 5432
PGUSER: supabase_admin
PGPASSWORD: postgres
services:
pg_db:
image: public.ecr.aws/supabase/postgres:17.6.1.029
env:
POSTGRES_USER: supabase_admin
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Configure Git (for tests)
run: |
git config --global user.name "CI Test User"
git config --global user.email "ci@example.com"
- name: Checkout
uses: actions/checkout@v4
- name: Enable corepack and pnpm
run: |
corepack enable
corepack prepare pnpm@9 --activate
pnpm -v
node -v
- name: Install
run: pnpm install
- name: Install LaunchQL CLI globally
run: npm install -g @launchql/cli@4.12.1
- name: Build
run: pnpm -r build
# - name: seed app_user
# run: |
# lql admin-users bootstrap --yes
# lql admin-users add --test --yes
# env:
# PGHOST: pg_db
# PGPORT: 5432
# PGUSER: supabase_admin
# PGPASSWORD: postgres
- name: Test ${{ matrix.package }}
run: cd ./packages/${{ matrix.package }} && pnpm test