mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-09-16 03:39:05 +02:00
Refactor test steps to use run-tests workflow
Replaces separate Maven unit and integration test steps with a call to the reusable run-tests.yml workflow, passing the current branch as input. This simplifies the workflow and centralizes test execution logic.
This commit is contained in:
parent
621004e6d8
commit
4df59d8862
9
.github/workflows/build-on-pull-request.yml
vendored
9
.github/workflows/build-on-pull-request.yml
vendored
@ -32,11 +32,10 @@ jobs:
|
||||
- name: Build with Maven
|
||||
run: mvn --file pom.xml -U clean package
|
||||
|
||||
- name: Run unit tests
|
||||
run: mvn --file pom.xml -U clean test -Punit-tests
|
||||
|
||||
- name: Run integration tests
|
||||
run: mvn --file pom.xml -U clean verify -Pintegration-tests
|
||||
- name: Call run-tests.yml
|
||||
uses: ./.github/workflows/run-tests.yml
|
||||
with:
|
||||
branch: ${{ github.head_ref || github.ref_name }}
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user