mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-09-16 11:48:58 +02:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 5. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v3...v5) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: Run Tests
|
|
|
|
on:
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
|
|
workflow_call:
|
|
inputs:
|
|
branch:
|
|
description: 'Branch name to run the tests on'
|
|
required: true
|
|
default: 'main'
|
|
type: string
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: 'Branch name to run the tests on'
|
|
required: true
|
|
default: 'main'
|
|
type: string
|
|
|
|
jobs:
|
|
run-tests:
|
|
name: Unit and Integration Tests
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout target branch
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.inputs.branch }}
|
|
|
|
- name: Set up Ollama
|
|
run: |
|
|
curl -fsSL https://ollama.com/install.sh | sh
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
server-id: github
|
|
settings-path: ${{ github.workspace }}
|
|
|
|
- name: Run unit tests
|
|
run: mvn clean test -Punit-tests
|
|
|
|
- name: Run integration tests
|
|
run: mvn clean verify -Pintegration-tests
|
|
env:
|
|
USE_EXTERNAL_OLLAMA_HOST: "true"
|
|
OLLAMA_HOST: "http://localhost:11434" |