tangled
alpha
login
or
join now
eldridge.cam
/
cartography
0
fork
atom
Trading card city builder game?
0
fork
atom
overview
issues
pulls
pipelines
try adding sql ci
eldridge.cam
2 months ago
e025bd90
bcd23b8d
1/3
gleam-ci.yaml
success
1m 29s
sql-ci.yaml
failed
2m 2s
svelte-ci.yaml
timeout
2m 26s
+33
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
sql-ci.yaml
+33
.tangled/workflows/sql-ci.yaml
reviewed
···
1
1
+
when:
2
2
+
- event: ["push"]
3
3
+
branch: ["*"]
4
4
+
5
5
+
engine: "nixery"
6
6
+
7
7
+
dependencies:
8
8
+
nixpkgs:
9
9
+
- nodejs
10
10
+
- postgresql
11
11
+
12
12
+
environment:
13
13
+
DATABASE_URL: postgresql://postgres:postgres@localhost/cartography
14
14
+
SHADOW_DATABASE_URL: postgresql://postgres:postgres@localhost/shadow
15
15
+
ROOT_DATABASE_URL: postgresql://postgres:postgres@localhost/postgres
16
16
+
PGDATA: /usr/local/pgsql/data/
17
17
+
18
18
+
steps:
19
19
+
- name: Install node modules
20
20
+
command: |
21
21
+
npm ci
22
22
+
- name: Check graphile status
23
23
+
command: |
24
24
+
npx graphile-migrate status --skipDatabase
25
25
+
- name: Start Postgres
26
26
+
command: |
27
27
+
pg_ctl initdb -U postgres -A trust
28
28
+
pg_ctl start
29
29
+
- name: Run migrate
30
30
+
command: |
31
31
+
npx graphile-migrate migrate
32
32
+
- name: Stop postgres
33
33
+
pg_ctl stop