mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	fix(ci): adapt playwright config for docker
This commit is contained in:
		
							parent
							
								
									9a825a76b5
								
							
						
					
					
						commit
						1d2c3fc7a7
					
				
							
								
								
									
										2
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/main-docker.yml
									
									
									
									
										vendored
									
									
								
							| @ -82,7 +82,7 @@ jobs: | |||||||
|           require-healthy: true |           require-healthy: true | ||||||
| 
 | 
 | ||||||
|       - name: Run Playwright tests |       - name: Run Playwright tests | ||||||
|         run: TRILIUM_DOCKER=1 npx playwright test |         run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 npx playwright test | ||||||
|       - uses: actions/upload-artifact@v4 |       - uses: actions/upload-artifact@v4 | ||||||
|         if: ${{ !cancelled() }} |         if: ${{ !cancelled() }} | ||||||
|         with: |         with: | ||||||
|  | |||||||
| @ -22,12 +22,12 @@ export default defineConfig({ | |||||||
|     trace: 'on-first-retry', |     trace: 'on-first-retry', | ||||||
|   }, |   }, | ||||||
|   /* Run your local dev server before starting the tests */ |   /* Run your local dev server before starting the tests */ | ||||||
|   webServer: { |   webServer: !process.env.TRILIUM_DOCKER ? { | ||||||
|     command: 'pnpm server:start-prod', |     command: 'pnpm server:start-prod', | ||||||
|     url: baseURL, |     url: baseURL, | ||||||
|     reuseExistingServer: !process.env.CI, |     reuseExistingServer: !process.env.CI, | ||||||
|     cwd: workspaceRoot |     cwd: workspaceRoot | ||||||
|   }, |   } : undefined, | ||||||
|   projects: [ |   projects: [ | ||||||
|     { |     { | ||||||
|       name: "chromium", |       name: "chromium", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran