Update run-tests.yml

This commit is contained in:
Amith Koujalgi 2025-08-30 18:09:35 +05:30 committed by GitHub
parent 3efd7712be
commit 8fef5148d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,10 +16,26 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - name: Checkout target branch
uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.branch }} ref: ${{ github.event.inputs.branch }}
- name: Use workflow from checked out branch
run: |
if [ -f .github/workflows/run-tests.yml ]; then
echo "Using workflow from checked out branch."
cp .github/workflows/run-tests.yml /tmp/run-tests.yml
exit 0
else
echo "Workflow file not found in checked out branch."
exit 1
fi
- name: Set up Ollama
run: |
curl -fsSL https://ollama.com/install.sh | sh
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
@ -33,3 +49,6 @@ jobs:
- name: Run integration tests - name: Run integration tests
run: mvn clean verify -Pintegration-tests run: mvn clean verify -Pintegration-tests
env:
USE_EXTERNAL_OLLAMA_HOST: "true"
OLLAMA_HOST: "http://localhost:11434"