From 28422fafc1f10d0e6c773c596d689259dee42086 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Wed, 29 Apr 2026 03:18:11 +0300 Subject: [PATCH] fix: Standardize migrations directory path and add explicit working-directory in CI workflow - Change migrations path from './migrations' to 'migrations' in all test jobs - Add explicit working-directory: . to migration steps for clarity - Apply changes to api-server-test, charging-engine-test, and packet-gateway-test jobs --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6247e4e..6995149 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,9 +47,10 @@ jobs: run: echo "$HOME/go/bin" >> $GITHUB_PATH - name: Run database migrations + working-directory: . env: DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db?sslmode=disable - run: goose postgres $DATABASE_URL up ./migrations + run: goose postgres $DATABASE_URL up migrations - name: Run linter working-directory: apps/api-server @@ -158,9 +159,10 @@ jobs: run: echo "$HOME/go/bin" >> $GITHUB_PATH - name: Run database migrations + working-directory: . env: DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db?sslmode=disable - run: goose postgres $DATABASE_URL up ./migrations + run: goose postgres $DATABASE_URL up migrations - name: Run tests working-directory: apps/charging-engine @@ -218,9 +220,10 @@ jobs: run: echo "$HOME/go/bin" >> $GITHUB_PATH - name: Run database migrations + working-directory: . env: DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db?sslmode=disable - run: goose postgres $DATABASE_URL up ./migrations + run: goose postgres $DATABASE_URL up migrations - name: Run tests working-directory: apps/packet-gateway