fix: Add goose to PATH and correct migrations directory path in CI workflow

- Add explicit PATH configuration step to ensure goose binary is accessible after installation
- Fix migrations directory path from 'migrations' to './migrations' in all test jobs
- Apply changes to api-server-test, charging-engine-test, and packet-gateway-test jobs
This commit is contained in:
nutcas3
2026-04-29 03:11:46 +03:00
parent 62ab577e82
commit 96eacf8e77
+12 -3
View File
@@ -43,10 +43,13 @@ jobs:
- name: Install goose
run: go install github.com/pressly/goose/v3/cmd/goose@latest
- name: Add goose to PATH
run: echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Run database migrations
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
@@ -151,10 +154,13 @@ jobs:
- name: Install goose
run: go install github.com/pressly/goose/v3/cmd/goose@latest
- name: Add goose to PATH
run: echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Run database migrations
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
@@ -208,10 +214,13 @@ jobs:
- name: Install goose
run: go install github.com/pressly/goose/v3/cmd/goose@latest
- name: Add goose to PATH
run: echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Run database migrations
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