mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-11-04 12:37:48 +00:00 
			
		
		
		
	TOOLS-23: sonar code analysis
This commit is contained in:
		
							
								
								
									
										31
									
								
								.github/workflows/sonar.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/sonar.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
				
			|||||||
 | 
					name: Run sonar analysis
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [ master ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					env:
 | 
				
			||||||
 | 
					  SONAR_URL: https://sonarcloud.io
 | 
				
			||||||
 | 
					  SONAR_ORGANIZATION: telecominfraproject
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  sonar:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					    - name: Checkout repository
 | 
				
			||||||
 | 
					      uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        fetch-depth: 0
 | 
				
			||||||
 | 
					    - name: Cache Maven packages
 | 
				
			||||||
 | 
					      uses: actions/cache@v1
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        path: ~/.m2
 | 
				
			||||||
 | 
					        key: ${{ runner.os }}-m2
 | 
				
			||||||
 | 
					    - name: Set up JDK 14
 | 
				
			||||||
 | 
					      uses: actions/setup-java@v1
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        java-version: 14
 | 
				
			||||||
 | 
					    - name: Run sonar
 | 
				
			||||||
 | 
					      working-directory: opensync-ext-cloud
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        mvn clean verify sonar:sonar -Dsonar.host.url=${{ env.SONAR_URL }} -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.organization=${{ env.SONAR_ORGANIZATION }}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user