Skip to content

Commit 25cb607

Browse files
committed
[CI] Run gel migrations in a single transaction to prevent timeouts
1 parent 032b89d commit 25cb607

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/actions/gel-setup/action.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@ description: 'Setup Gel server, migrate schema, generate TS files'
33
runs:
44
using: composite
55
steps:
6-
- name: Setup Gel
6+
- name: Install Gel CLI
77
uses: geldata/setup-gel@v1
8+
with:
9+
server-version: none
10+
11+
- name: Initialize Gel Project
12+
shell: bash
13+
run: gel project init --no-migrations --non-interactive
14+
15+
- name: Migrate Gel Schema
16+
shell: bash
17+
run: gel migrate --single-transaction
818

919
- name: Generate Gel TS files
1020
shell: bash

.github/workflows/gel.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ jobs:
1010
- name: Node Setup & Yarn Install
1111
uses: ./.github/actions/setup
1212

13-
- uses: geldata/setup-gel@v1
14-
15-
- name: Generate Gel TS files
16-
shell: bash
17-
run: yarn gel:gen
13+
- name: Gel Setup
14+
uses: ./.github/actions/gel-setup
1815

1916
- name: Inject Access Policies
2017
run: yarn console gel ap inject

0 commit comments

Comments
 (0)