mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-05-15 11:57:12 +02:00

Renamed the workflow to specify both unit and integration tests. Adjusted the job name to better reflect its purpose and ensured clear descriptions for inputs. These changes enhance readability and intent in the CI configuration.
32 lines
723 B
YAML
32 lines
723 B
YAML
name: Run Unit and Integration Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: 'Branch name to run the tests on'
|
|
required: true
|
|
default: 'main'
|
|
|
|
jobs:
|
|
run-tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.inputs.branch }}
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
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 |