forked from Mirror/ollama4j
		
	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 |       - name: Build with Maven | ||||||
|         run: mvn --file pom.xml -U clean package |         run: mvn --file pom.xml -U clean package | ||||||
|  |  | ||||||
|       - name: Run unit tests |       - name: Call run-tests.yml | ||||||
|         run: mvn --file pom.xml -U clean test -Punit-tests |         uses: ./.github/workflows/run-tests.yml | ||||||
|  |         with: | ||||||
|       - name: Run integration tests |           branch: ${{ github.head_ref || github.ref_name }} | ||||||
|         run: mvn --file pom.xml -U clean verify -Pintegration-tests |  | ||||||
|  |  | ||||||
|       - name: Use Node.js |       - name: Use Node.js | ||||||
|         uses: actions/setup-node@v3 |         uses: actions/setup-node@v3 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 amithkoujalgi
					amithkoujalgi