mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 20:21:47 +01:00 
			
		
		
		
	load tests added for preproduction
This commit is contained in:
		
							parent
							
								
									56f5ad4ad0
								
							
						
					
					
						commit
						8aaea6f71e
					
				
							
								
								
									
										19
									
								
								.github/workflows/load-test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/load-test.yml
									
									
									
									
										vendored
									
									
								
							| @ -15,30 +15,21 @@ permissions: | ||||
| 
 | ||||
| jobs: | ||||
|   jmeter: | ||||
|     name: Run JMeter Tests and Generate HTML Report | ||||
|     name: Run JMeter Tests | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v4 | ||||
| 
 | ||||
|       - name: Ensure Report Directory Exists | ||||
|         run: mkdir -p reports/html-report | ||||
| 
 | ||||
|       - name: Cleanup Previous JMeter Reports | ||||
|         run: rm -rf reports/html-report && mkdir -p reports/html-report | ||||
| 
 | ||||
|       - name: Run JMeter Load Test | ||||
|       - name: Run JMeter Action on a test | ||||
|         uses: rbhadti94/apache-jmeter-action@v0.5.0 | ||||
|         with: | ||||
|           testFilePath: tests/jmeter/gite-test-plan.jmx | ||||
|           outputReportsFolder: reports/ | ||||
|           args: "-n -t tests/jmeter/gite-test-plan.jmx -l reports/results.jtl -e -o reports/html-report" | ||||
| 
 | ||||
|       - name: Check JMeter Report Generation | ||||
|         run: ls -la reports/html-report || echo "Report directory is empty" | ||||
|           args: "--loglevel INFO" | ||||
| 
 | ||||
|       - name: Upload JMeter Test Results | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: jmeter-html-report | ||||
|           path: reports/html-report/ | ||||
|           name: jmeter-test-results | ||||
|           path: reports/ | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user