1- name : LaunchQL tests
1+ name : Supabase tests
22on :
33 push :
4+ pull_request :
5+ types : [opened, synchronized, reopened]
46 workflow_dispatch :
57
68jobs :
7- setup :
8- runs-on : ubuntu-latest
9- container : pyramation/node-sqitch:20.12.0
10-
11- env :
12- PGHOST : pg_db
13- PGPORT : 5432
14- PGUSER : postgres
15- PGPASSWORD : password
16-
17- services :
18- pg_db :
19- image : supabase/postgres:17.6.1.013
20- env :
21- POSTGRES_USER : supabase_admin
22- POSTGRES_PASSWORD : password
23- options : >-
24- --health-cmd pg_isready
25- --health-interval 10s
26- --health-timeout 5s
27- --health-retries 5
28- ports :
29- - 5432:5432
30-
31- minio_cdn :
32- image : minio/minio:edge-cicd
33- env :
34- MINIO_ROOT_USER : minioadmin
35- MINIO_ROOT_PASSWORD : minioadmin
36- ports :
37- - 9000:9000
38- - 9001:9001
39- options : >-
40- --health-cmd "curl -f http://localhost:9000/minio/health/live || exit 1"
41- --health-interval 10s
42- --health-timeout 5s
43- --health-retries 5
44-
45- steps :
46- - name : Configure Git (for tests)
47- run : |
48- git config --global user.name "CI Test User"
49- git config --global user.email "ci@example.com"
50-
51- - name : Checkout
52- uses : actions/checkout@v4
53-
54- - name : Enable corepack and pnpm
55- run : |
56- corepack enable
57- corepack prepare pnpm@9 --activate
58- pnpm -v
59- node -v
60-
61- - name : Install
62- run : pnpm install
63-
64- - name : Install LaunchQL CLI globally
65- run : npm install -g @launchql/cli@4.9.0
66-
67- - name : Build
68- run : pnpm -r build
69-
709 test :
71- needs : setup
7210 runs-on : ubuntu-latest
7311 container : pyramation/node-sqitch:20.12.0
7412 continue-on-error : true
7513 strategy :
7614 fail-fast : false
7715 matrix :
7816 package :
17+ - supabase
7918 - rls-demo
8019
8120 env :
8221 PGHOST : pg_db
8322 PGPORT : 5432
84- PGUSER : postgres
85- PGPASSWORD : password
23+ PGUSER : supabase_admin
24+ PGPASSWORD : postgres
8625
8726 services :
8827 pg_db :
89- image : supabase/postgres:17.6.1.013
28+ image : public.ecr.aws/ supabase/postgres:17.6.1.029
9029 env :
9130 POSTGRES_USER : supabase_admin
92- POSTGRES_PASSWORD : password
31+ POSTGRES_PASSWORD : postgres
9332 options : >-
9433 --health-cmd pg_isready
9534 --health-interval 10s
9837 ports :
9938 - 5432:5432
10039
101- minio_cdn :
102- image : minio/minio:edge-cicd
103- env :
104- MINIO_ROOT_USER : minioadmin
105- MINIO_ROOT_PASSWORD : minioadmin
106- ports :
107- - 9000:9000
108- - 9001:9001
109- options : >-
110- --health-cmd "curl -f http://localhost:9000/minio/health/live || exit 1"
111- --health-interval 10s
112- --health-timeout 5s
113- --health-retries 5
114-
11540 steps :
11641 - name : Configure Git (for tests)
11742 run : |
@@ -132,11 +57,21 @@ jobs:
13257 run : pnpm install
13358
13459 - name : Install LaunchQL CLI globally
135- run : npm install -g @launchql/cli@4.9.0
60+ run : npm install -g @launchql/cli@4.12.1
13661
13762 - name : Build
13863 run : pnpm -r build
13964
65+ # - name: seed app_user
66+ # run: |
67+ # lql admin-users bootstrap --yes
68+ # lql admin-users add --test --yes
69+ # env:
70+ # PGHOST: pg_db
71+ # PGPORT: 5432
72+ # PGUSER: supabase_admin
73+ # PGPASSWORD: postgres
74+
14075 - name : Test ${{ matrix.package }}
14176 run : cd ./packages/${{ matrix.package }} && pnpm test
14277
0 commit comments