You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Parallelise Cypress runs once more (#9902)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							0c30b577e0
						
					
				
				
					commit
					3874314e13
				
			
							
								
								
									
										31
									
								
								.github/workflows/cypress.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/cypress.yaml
									
									
									
									
										vendored
									
									
								
							@@ -84,14 +84,16 @@ jobs:
 | 
				
			|||||||
            actions: read
 | 
					            actions: read
 | 
				
			||||||
            issues: read
 | 
					            issues: read
 | 
				
			||||||
            pull-requests: read
 | 
					            pull-requests: read
 | 
				
			||||||
        environment:
 | 
					        environment: Cypress
 | 
				
			||||||
            Cypress
 | 
					        strategy:
 | 
				
			||||||
            #strategy:
 | 
					            fail-fast: false
 | 
				
			||||||
            #    fail-fast: false
 | 
					            matrix:
 | 
				
			||||||
            #    matrix:
 | 
					                # Run 4 instances in Parallel
 | 
				
			||||||
            #      # Run 4 instances in Parallel
 | 
					                runner: [1, 2, 3, 4]
 | 
				
			||||||
            #      runner: [1, 2, 3, 4]
 | 
					 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
 | 
					            - uses: browser-actions/setup-chrome@latest
 | 
				
			||||||
 | 
					            - run: echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            - uses: tecolicom/actions-use-apt-tools@v1
 | 
					            - uses: tecolicom/actions-use-apt-tools@v1
 | 
				
			||||||
              with:
 | 
					              with:
 | 
				
			||||||
                  # Our test suite includes some screenshot tests with unusual diacritics, which are
 | 
					                  # Our test suite includes some screenshot tests with unusual diacritics, which are
 | 
				
			||||||
@@ -121,14 +123,12 @@ jobs:
 | 
				
			|||||||
              with:
 | 
					              with:
 | 
				
			||||||
                  # The built-in Electron runner seems to grind to a halt trying
 | 
					                  # The built-in Electron runner seems to grind to a halt trying
 | 
				
			||||||
                  # to run the tests, so use chrome.
 | 
					                  # to run the tests, so use chrome.
 | 
				
			||||||
                  browser: chrome
 | 
					                  browser: "${{ env.BROWSER_PATH }}"
 | 
				
			||||||
                  start: npx serve -p 8080 webapp
 | 
					                  start: npx serve -p 8080 webapp
 | 
				
			||||||
                  wait-on: "http://localhost:8080"
 | 
					                  wait-on: "http://localhost:8080"
 | 
				
			||||||
                  record:
 | 
					                  record: true
 | 
				
			||||||
                      true
 | 
					                  parallel: true
 | 
				
			||||||
                      #parallel: true
 | 
					                  command-prefix: "yarn percy exec --parallel --"
 | 
				
			||||||
                      #command-prefix: 'yarn percy exec --parallel --'
 | 
					 | 
				
			||||||
                  command-prefix: "yarn percy exec --"
 | 
					 | 
				
			||||||
                  config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }'
 | 
					                  config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }'
 | 
				
			||||||
                  ci-build-id: ${{ needs.prepare.outputs.uuid }}
 | 
					                  ci-build-id: ${{ needs.prepare.outputs.uuid }}
 | 
				
			||||||
              env:
 | 
					              env:
 | 
				
			||||||
@@ -159,9 +159,8 @@ jobs:
 | 
				
			|||||||
                  # tell Percy more details about the context of this run
 | 
					                  # tell Percy more details about the context of this run
 | 
				
			||||||
                  PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
 | 
					                  PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
 | 
				
			||||||
                  PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}
 | 
					                  PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}
 | 
				
			||||||
                  PERCY_PULL_REQUEST:
 | 
					                  PERCY_PULL_REQUEST: ${{ needs.prepare.outputs.pr_id }}
 | 
				
			||||||
                      ${{ needs.prepare.outputs.pr_id }}
 | 
					                  PERCY_PARALLEL_TOTAL: ${{ strategy.job-total }}
 | 
				
			||||||
                      #PERCY_PARALLEL_TOTAL: ${{ strategy.job-total }}
 | 
					 | 
				
			||||||
                  PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }}
 | 
					                  PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            - name: Upload Artifact
 | 
					            - name: Upload Artifact
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user