Skip to content

Commit 328f4b4

Browse files
authored
Merge pull request #10 from launchql/feat/supa-cleanup
Feat/supa cleanup
2 parents 8461481 + 8c70aee commit 328f4b4

76 files changed

Lines changed: 345 additions & 1066 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 19 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,34 @@
1-
name: LaunchQL tests
1+
name: Supabase tests
22
on:
33
push:
4+
pull_request:
5+
types: [opened, synchronized, reopened]
46
workflow_dispatch:
57

68
jobs:
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
@@ -98,20 +37,6 @@ jobs:
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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2025 Dan Lynch <pyramation@gmail.com>
3+
Copyright (c) 2025 Interweb, Inc. <developers@interweb.co>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

packages/auth/.questions.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

packages/auth/auth.control

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/auth/launchql.plan

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)