File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change 24
24
arch : amd64
25
25
- runner : large-linux-arm
26
26
arch : arm64
27
- - runner : macos-latest -xlarge
27
+ - runner : macos-14 -xlarge
28
28
arch : arm64
29
29
runs-on : ${{ matrix.runner }}
30
30
timeout-minutes : 180
Original file line number Diff line number Diff line change 171
171
#First we need to create a generic pg cluster for pgtap tests and run those
172
172
export GRN_PLUGINS_DIR=${ pkgs . supabase-groonga } /lib/groonga/plugins
173
173
PGTAP_CLUSTER=$(mktemp -d)
174
- # Set USER environment variable to handle root user restriction on macOS
175
- # This is a common pattern in Nix builds to handle user-related issues
176
- export USER="$(whoami)"
177
- if [[ "$(uname)" == "Darwin" ]]; then
178
- # On macOS, ensure we're not running as root for initdb
179
- if [[ "$USER" == "root" ]]; then
180
- export USER="nobody"
181
- fi
182
- fi
183
-
184
- # Initialize database with proper flags based on version
185
- if [ "${ majorVersion } " = "orioledb-17" ]; then
186
- initdb -D "$PGTAP_CLUSTER" \
187
- --allow-group-access \
188
- --username=supabase_admin \
189
- --locale-provider=icu \
190
- --encoding=UTF-8 \
191
- --icu-locale=en_US.UTF-8
192
- else
193
- initdb -D "$PGTAP_CLUSTER" \
194
- --allow-group-access \
195
- --username=supabase_admin
196
- fi
174
+ initdb --locale=C --username=supabase_admin -D "$PGTAP_CLUSTER"
197
175
substitute ${ ./tests/postgresql.conf.in } "$PGTAP_CLUSTER"/postgresql.conf \
198
176
--subst-var-by PGSODIUM_GETKEY_SCRIPT "${ getkey-script } /bin/pgsodium-getkey"
199
177
echo "listen_addresses = '*'" >> "$PGTAP_CLUSTER"/postgresql.conf
You can’t perform that action at this time.
0 commit comments