mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	CI: Fixing tests results upload
This commit is contained in:
		
							parent
							
								
									6c3326e566
								
							
						
					
					
						commit
						e74ffce3af
					
				
							
								
								
									
										12
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							@ -26,7 +26,7 @@ jobs:
 | 
			
		||||
        dotnet build --no-restore '-p:SkipWebApp=true;SkipTranscoder=true' -p:CopyLocalLockFileAssemblies=true
 | 
			
		||||
        cp ./src/Kyoo.Abstractions/bin/Debug/net5.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll ./tests/Kyoo.Tests/bin/Debug/net5.0/
 | 
			
		||||
    - name: Test
 | 
			
		||||
      run: dotnet test --no-build '-p:CollectCoverage=true;CoverletOutputFormat=opencover'
 | 
			
		||||
      run: dotnet test --no-build '-p:CollectCoverage=true;CoverletOutputFormat=opencover' --logger "trx;LogFileName=TestOutputResults.xml"
 | 
			
		||||
      env:
 | 
			
		||||
        POSTGRES_HOST: postgres
 | 
			
		||||
        POSTGRES_USERNAME: postgres
 | 
			
		||||
@ -34,11 +34,15 @@ jobs:
 | 
			
		||||
    - name: Sanitize coverage output
 | 
			
		||||
      if: ${{ always() }}
 | 
			
		||||
      run: sed -i "s'$(pwd)'.'" tests/Kyoo.Tests/coverage.opencover.xml
 | 
			
		||||
    - name: Upload tests results
 | 
			
		||||
      if: ${{ always() }}
 | 
			
		||||
      uses: actions/upload-artifact@v2
 | 
			
		||||
      with:
 | 
			
		||||
        name: results.xml
 | 
			
		||||
        path: "**/TestOutputResults.xml"
 | 
			
		||||
    - name: Upload coverage report
 | 
			
		||||
      if: ${{ always() }}
 | 
			
		||||
      uses: actions/upload-artifact@v2
 | 
			
		||||
      with:
 | 
			
		||||
        name: coverage.xml
 | 
			
		||||
        path: |
 | 
			
		||||
          "**/coverage.opencover.xml"
 | 
			
		||||
          "**/TestOutputResults.xml"
 | 
			
		||||
        path: "**/coverage.opencover.xml"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user