Skip to content

Commit c41dde7

Browse files
committed
ci
1 parent 6908297 commit c41dde7

File tree

1 file changed

+10
-50
lines changed

1 file changed

+10
-50
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,57 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
setup:
10-
runs-on: ubuntu-latest
11-
container: pyramation/node-sqitch:20.12.0
12-
13-
env:
14-
PGHOST: pg_db
15-
PGPORT: 5432
16-
PGUSER: supabase_admin
17-
PGPASSWORD: postgres
18-
19-
services:
20-
pg_db:
21-
image: supabase/postgres:17.6.1.013
22-
env:
23-
POSTGRES_USER: supabase_admin
24-
POSTGRES_PASSWORD: postgres
25-
options: >-
26-
--health-cmd pg_isready
27-
--health-interval 10s
28-
--health-timeout 5s
29-
--health-retries 5
30-
ports:
31-
- 5432:5432
32-
33-
steps:
34-
- name: Configure Git (for tests)
35-
run: |
36-
git config --global user.name "CI Test User"
37-
git config --global user.email "[email protected]"
38-
39-
- name: Checkout
40-
uses: actions/checkout@v4
41-
42-
- name: Enable corepack and pnpm
43-
run: |
44-
corepack enable
45-
corepack prepare pnpm@9 --activate
46-
pnpm -v
47-
node -v
48-
49-
- name: Install
50-
run: pnpm install
51-
52-
- name: Install LaunchQL CLI globally
53-
run: npm install -g @launchql/[email protected]
54-
55-
- name: Build
56-
run: pnpm -r build
57-
589
test:
59-
needs: setup
6010
runs-on: ubuntu-latest
6111
container: pyramation/node-sqitch:20.12.0
6212
continue-on-error: true
@@ -111,6 +61,16 @@ jobs:
11161
- name: Build
11262
run: pnpm -r build
11363

64+
- name: seed app_user
65+
run: |
66+
lql admin-users bootstrap --yes
67+
lql admin-users add --test --yes
68+
env:
69+
PGHOST: pg_db
70+
PGPORT: 5432
71+
PGUSER: supabase_admin
72+
PGPASSWORD: postgres
73+
11474
- name: Test ${{ matrix.package }}
11575
run: cd ./packages/${{ matrix.package }} && pnpm test
11676

0 commit comments

Comments
 (0)