mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-10-31 16:40:41 +01: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:
		
							
								
								
									
										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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 amithkoujalgi
					amithkoujalgi