mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-22 20:08:48 +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
|
run: echo "$HOME/go/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run database migrations
|
- name: Run database migrations
|
||||||
|
working-directory: .
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db?sslmode=disable
|
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
|
- name: Run linter
|
||||||
working-directory: apps/api-server
|
working-directory: apps/api-server
|
||||||
@@ -158,9 +159,10 @@ jobs:
|
|||||||
run: echo "$HOME/go/bin" >> $GITHUB_PATH
|
run: echo "$HOME/go/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run database migrations
|
- name: Run database migrations
|
||||||
|
working-directory: .
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db?sslmode=disable
|
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
|
- name: Run tests
|
||||||
working-directory: apps/charging-engine
|
working-directory: apps/charging-engine
|
||||||
@@ -218,9 +220,10 @@ jobs:
|
|||||||
run: echo "$HOME/go/bin" >> $GITHUB_PATH
|
run: echo "$HOME/go/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Run database migrations
|
- name: Run database migrations
|
||||||
|
working-directory: .
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db?sslmode=disable
|
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
|
- name: Run tests
|
||||||
working-directory: apps/packet-gateway
|
working-directory: apps/packet-gateway
|
||||||
|
|||||||
Reference in New Issue
Block a user