mirror of
				https://github.com/bartvdbraak/hellob.art.git
				synced 2025-10-30 03:39:09 +00:00 
			
		
		
		
	feat: upload report to cloudflare pages
This commit is contained in:
		
							parent
							
								
									3d59b68a17
								
							
						
					
					
						commit
						8f7f09b826
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										11
									
								
								.github/workflows/unlighthouse-report.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/unlighthouse-report.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -58,11 +58,10 @@ jobs: | ||||||
|             --reporter jsonExpanded \ |             --reporter jsonExpanded \ | ||||||
|             --build-static |             --build-static | ||||||
| 
 | 
 | ||||||
|       - name: Upload report as artifact |       - name: Upload report to Cloudflare pages | ||||||
|         uses: actions/upload-artifact@v3 |         run: | | ||||||
|         with: |           wrangler init | ||||||
|           name: lighthouse-report |           wrangler pages publish .unlighthouse --site pr${{ github.event.pull_request.number }} | ||||||
|           path: ./.unlighthouse |  | ||||||
| 
 | 
 | ||||||
|       - name: Create result content |       - name: Create result content | ||||||
|         id: create_result_content |         id: create_result_content | ||||||
|  | @ -79,7 +78,7 @@ jobs: | ||||||
| 
 | 
 | ||||||
|             const score = res => `${getEmoji(res)} ${formatScore(res)}`; |             const score = res => `${getEmoji(res)} ${formatScore(res)}`; | ||||||
| 
 | 
 | ||||||
|             const reportUrl = `https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/artifacts/${{ github.run_id }}/lighthouse-report`; |             const reportUrl = ``; | ||||||
| 
 | 
 | ||||||
|             const comment = [ |             const comment = [ | ||||||
|                 `⚡️ Lighthouse report for the changes in this PR:`, |                 `⚡️ Lighthouse report for the changes in this PR:`, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue