Skip to content

Commit 4164166

Browse files
tweak: mv setup-testing.sql from .github/workflows
1 parent 94b3a41 commit 4164166

3 files changed

Lines changed: 2 additions & 13 deletions

File tree

.github/workflows/database-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: supabase start
2727
- name: Setup supabase testing
2828
run: |
29-
psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f .github/workflows/setup-testing.sql
29+
psql -v ON_ERROR_STOP=1 -U postgres -d postgres -h localhost -p 54322 -f frontend/packages/db/supabase/setup-testing.sql
3030
env:
3131
PGPASSWORD: postgres
3232
- name: Run Tests
File renamed without changes.

frontend/packages/db/supabase/tests/run-tests.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@ if ! command -v pnpm &> /dev/null; then
88
exit 1
99
fi
1010

11-
# Find the project root directory (where .github is located)
12-
cd $(pwd)
13-
while [ ! -d ".github" ] && [ "$(pwd)" != "/" ]; do
14-
cd ..
15-
done
16-
17-
if [ ! -d ".github" ]; then
18-
echo "Could not find project root directory with .github folder"
19-
exit 1
20-
fi
21-
2211
PROJECT_ROOT=$(pwd)
2312
echo "Project root: $PROJECT_ROOT"
2413

@@ -33,7 +22,7 @@ fi
3322

3423
# Set up the testing environment
3524
echo "Setting up the testing environment..."
36-
PGPASSWORD=postgres psql -U postgres -d postgres -h localhost -p 54322 -f "$PROJECT_ROOT/.github/workflows/setup-testing.sql"
25+
PGPASSWORD=postgres psql -U postgres -d postgres -h localhost -p 54322 -f "$PROJECT_ROOT/frontend/packages/db/supabase/setup-testing.sql"
3726

3827
# Change to the directory with the tests
3928
cd "$PROJECT_ROOT/frontend/packages/db/supabase"

0 commit comments

Comments
 (0)