From 96eacf8e77b3316c7f5751581f8a0fa738d62147 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Wed, 29 Apr 2026 03:11:46 +0300 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b05af06..6247e4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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