From d6f5b5c31399869078b5a7a6e60f493c17ea1691 Mon Sep 17 00:00:00 2001 From: Amith Koujalgi Date: Sat, 20 Sep 2025 15:51:31 +0530 Subject: [PATCH] Update workflow and improve test logging Added environment configuration for GitHub Pages deployment in the build workflow and removed unused environment variable from test workflow. Enhanced logging in OllamaAPIIntegrationTest to include the external host address. --- .github/workflows/build-on-pull-request.yml | 6 ++++-- .../ollama4j/integrationtests/OllamaAPIIntegrationTest.java | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-on-pull-request.yml b/.github/workflows/build-on-pull-request.yml index 430e3ec..758078d 100644 --- a/.github/workflows/build-on-pull-request.yml +++ b/.github/workflows/build-on-pull-request.yml @@ -20,6 +20,10 @@ jobs: permissions: contents: read + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: - uses: actions/checkout@v5 - name: Set up JDK 21 @@ -39,8 +43,6 @@ jobs: uses: ./.github/workflows/run-tests.yml with: branch: ${{ github.head_ref || github.ref_name }} - env: - USE_EXTERNAL_OLLAMA_HOST: "false" build-docs: name: Build Documentation diff --git a/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java b/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java index b60d6df..8eaf3fb 100644 --- a/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java +++ b/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java @@ -106,7 +106,7 @@ class OllamaAPIIntegrationTest { } if (useExternalOllamaHost) { - LOG.info("Using external Ollama host..."); + LOG.info("Using external Ollama host: {}", ollamaHost); api = new OllamaAPI(ollamaHost); } else { throw new RuntimeException(