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
This commit is contained in:
nutcas3
2026-04-29 03:18:11 +03:00
parent 96eacf8e77
commit 28422fafc1
+6 -3
View File
@@ -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