@@ -5,32 +5,31 @@ on: pull_request
55env :
66 # make chromedriver detect installed Chrome version and download the corresponding driver
77 DETECT_CHROMEDRIVER_VERSION : true
8+ # The default behavior of chromedriver uses the older Chrome download URLs. We need to override
9+ # the beahvior to use the new URLs.
10+ CHROMEDRIVER_CDNURL : https://googlechromelabs.github.io/
11+ CHROMEDRIVER_CDNBINARIESURL : https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/
812
913jobs :
1014 test-chrome :
1115 name : Test Auth on Chrome and Node If Changed
1216 runs-on : ubuntu-latest
1317
1418 steps :
15- # install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo
19+ # install Chrome first, so the correct version of webdriver can be installed by chromedriver
20+ # when setting up the repo
1621 - name : install Chrome stable
17- # Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790".
18- # The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114.
19- # TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver.
2022 run : |
21- sudo apt-get update
22- sudo apt-get install wget
23- sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb
24- sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades
23+ npx @puppeteer/browsers install chrome@stable
2524 - name : Checkout Repo
2625 uses : actions/checkout@master
2726 with :
2827 # This makes Actions fetch all Git history so run-changed script can diff properly.
2928 fetch-depth : 0
30- - name : Set up Node (14 )
29+ - name : Set up Node (16 )
3130 uses : actions/setup-node@v3
3231 with :
33- node-version : 14 .x
32+ node-version : 16 .x
3433 - name : Bump Node memory limit
3534 run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
3635 - name : Test setup and yarn install
@@ -49,27 +48,22 @@ jobs:
4948
5049 runs-on : ubuntu-20.04
5150
52- # Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790".
53- # The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114.
54- # TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver.
5551 steps :
5652 - name : install Firefox stable
5753 run : |
5854 sudo apt-get update
5955 sudo apt-get install firefox
6056 sudo apt-get install wget
61- sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb
62- sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades
6357
6458 - name : Checkout Repo
6559 uses : actions/checkout@master
6660 with :
6761 # This makes Actions fetch all Git history so run-changed script can diff properly.
6862 fetch-depth : 0
69- - name : Set up Node (14 )
63+ - name : Set up Node (16 )
7064 uses : actions/setup-node@v3
7165 with :
72- node-version : 14 .x
66+ node-version : 16 .x
7367 - name : Bump Node memory limit
7468 run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
7569 - name : Test setup and yarn install
0 commit comments