forked from rh-aiservices-bu/parasol-insurance
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from edeandrea/add-tests
Some cleanup and adding some tests
- Loading branch information
Showing
14 changed files
with
645 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: maven | ||
directory: app | ||
schedule: | ||
interval: daily | ||
target-branch: dev | ||
|
||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
target-branch: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Simple build and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- '**/*.md' | ||
- '.github/dependabot.yml' | ||
- '.github/workflows/dependabot-automerge.yml' | ||
pull_request: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- '**/*.md' | ||
- '.github/dependabot.yml' | ||
- '.github/workflows/dependabot-automerge.yml' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}" | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
jvm-build-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: | ||
- '17' | ||
- '21' | ||
services: | ||
ollama: | ||
image: ollama/ollama | ||
ports: | ||
- 11434:11434 | ||
name: "jvm-build-test-${{ matrix.java }}" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: temurin | ||
cache: maven | ||
|
||
- name: "build-test-jvm-java${{ matrix.java }}" | ||
working-directory: app | ||
run: | | ||
./mvnw -B clean verify \ | ||
-Dquarkus.langchain4j.chat-model.provider=ollama \ | ||
-Dquarkus.http.host=0.0.0.0 \ | ||
-Dmaven.compiler.release=${{ matrix.java }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
package org.parasol.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
|
||
public record ClaimBotQuery(String claim, String query) { | ||
|
||
@JsonCreator | ||
public ClaimBotQuery { | ||
} | ||
|
||
} |
6 changes: 0 additions & 6 deletions
6
app/src/main/java/org/parasol/model/ClaimBotQueryResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
package org.parasol.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
|
||
public record ClaimBotQueryResponse(String type, String token, String source) { | ||
|
||
@JsonCreator | ||
public ClaimBotQueryResponse { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
app/src/main/java/org/parasol/resources/GreetingResource.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.