In #35004, we started ignoring yarn's engines check for `yarn install` in AIO's `test-production.sh` script to fix a failure in the `aio_monitoring_stable` CI job. (See #35004 for details.) It turns out that the version of yarn used on the stable branch (1.17.3) `--ignore-engines` is needed on all yarn commands (including `yarn run`). Thus, #35004 is not enough to fix the failures. New example failure: https://circleci.com/gh/angular/angular/604341 This commit turns of the engines check for the whole `aio_monitoring_stable` CI job to fix the failure and make the job more robust. PR Close #35033
		
			
				
	
	
		
			33 lines
		
	
	
		
			815 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			815 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| set +x -eu -o pipefail
 | |
| 
 | |
| (
 | |
|   readonly thisDir="$(cd $(dirname ${BASH_SOURCE[0]}); pwd)"
 | |
|   readonly aioDir="$(realpath $thisDir/..)"
 | |
| 
 | |
|   readonly protractorConf="$aioDir/tests/deployment/e2e/protractor.conf.js"
 | |
|   readonly targetUrl="$1"
 | |
|   readonly minPwaScore="$2"
 | |
| 
 | |
|   cd "$aioDir"
 | |
| 
 | |
|   # Install dependencies.
 | |
|   echo -e "\nInstalling dependencies in '$aioDir'...\n-----"
 | |
|   yarn install --frozen-lockfile --non-interactive
 | |
|   yarn update-webdriver
 | |
| 
 | |
|   # Run checks for target URL.
 | |
|   echo -e "\nChecking '$targetUrl'...\n-----"
 | |
| 
 | |
|   # Run basic e2e and deployment config tests.
 | |
|   yarn protractor "$protractorConf" --baseUrl "$targetUrl"
 | |
| 
 | |
|   # Run PWA-score tests.
 | |
|   yarn test-pwa-score "$targetUrl" "$minPwaScore"
 | |
| 
 | |
|   # Run a11y tests.
 | |
|   yarn test-a11y-score "$targetUrl"
 | |
| 
 | |
|   echo -e "\nAll checks passed!"
 | |
| )
 |