mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-09-16 11:48:58 +02:00
Update run-tests.yml
This commit is contained in:
parent
3efd7712be
commit
8fef5148d9
21
.github/workflows/run-tests.yml
vendored
21
.github/workflows/run-tests.yml
vendored
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user