mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-20 03:44:25 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user