mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-19 10:15:13 +00:00
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:
@@ -43,10 +43,13 @@ jobs:
|
|||||||
- name: Install goose
|
- name: Install goose
|
||||||
run: go install github.com/pressly/goose/v3/cmd/goose@latest
|
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
|
- name: Run database migrations
|
||||||
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
|
||||||
@@ -151,10 +154,13 @@ jobs:
|
|||||||
- name: Install goose
|
- name: Install goose
|
||||||
run: go install github.com/pressly/goose/v3/cmd/goose@latest
|
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
|
- name: Run database migrations
|
||||||
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
|
||||||
@@ -208,10 +214,13 @@ jobs:
|
|||||||
- name: Install goose
|
- name: Install goose
|
||||||
run: go install github.com/pressly/goose/v3/cmd/goose@latest
|
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
|
- name: Run database migrations
|
||||||
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