mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	feat(ci): report server size as well
This commit is contained in:
		
							parent
							
								
									acbdf98c84
								
							
						
					
					
						commit
						9c2329a5e6
					
				
							
								
								
									
										33
									
								
								.github/workflows/dev.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/dev.yml
									
									
									
									
										vendored
									
									
								
							@ -48,7 +48,38 @@ jobs:
 | 
				
			|||||||
          paths: 'upload/**/*'
 | 
					          paths: 'upload/**/*'
 | 
				
			||||||
          onlyDiff: 'true'
 | 
					          onlyDiff: 'true'
 | 
				
			||||||
          branch: 'develop'
 | 
					          branch: 'develop'
 | 
				
			||||||
          header: 'Electron size report'
 | 
					          header: 'Size report'
 | 
				
			||||||
 | 
					          append: true
 | 
				
			||||||
 | 
					          ghToken: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					  report-server-size:
 | 
				
			||||||
 | 
					    name: Report server size
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Checkout the repository
 | 
				
			||||||
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Set up node & dependencies
 | 
				
			||||||
 | 
					        uses: actions/setup-node@v4
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          node-version: 22
 | 
				
			||||||
 | 
					          cache: "npm"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - run: npm ci
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Run the build
 | 
				
			||||||
 | 
					        uses: ./.github/actions/build-server
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          os: linux
 | 
				
			||||||
 | 
					          arch: x64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Run the server size report
 | 
				
			||||||
 | 
					        uses: ./.github/actions/report-size
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          paths: 'upload/**/*'
 | 
				
			||||||
 | 
					          onlyDiff: 'true'
 | 
				
			||||||
 | 
					          branch: 'develop'
 | 
				
			||||||
 | 
					          header: 'Size report'
 | 
				
			||||||
 | 
					          append: true
 | 
				
			||||||
          ghToken: ${{ secrets.GITHUB_TOKEN }}
 | 
					          ghToken: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test_dev:
 | 
					  test_dev:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user