@@ -5,32 +5,31 @@ on: pull_request
5
5
env :
6
6
# make chromedriver detect installed Chrome version and download the corresponding driver
7
7
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/
8
12
9
13
jobs :
10
14
test-chrome :
11
15
name : Test Auth on Chrome and Node If Changed
12
16
runs-on : ubuntu-latest
13
17
14
18
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
16
21
- 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.
20
22
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
25
24
- name : Checkout Repo
26
25
uses : actions/checkout@master
27
26
with :
28
27
# This makes Actions fetch all Git history so run-changed script can diff properly.
29
28
fetch-depth : 0
30
- - name : Set up Node (14 )
29
+ - name : Set up Node (16 )
31
30
uses : actions/setup-node@v3
32
31
with :
33
- node-version : 14 .x
32
+ node-version : 16 .x
34
33
- name : Bump Node memory limit
35
34
run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
36
35
- name : Test setup and yarn install
@@ -49,27 +48,22 @@ jobs:
49
48
50
49
runs-on : ubuntu-20.04
51
50
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.
55
51
steps :
56
52
- name : install Firefox stable
57
53
run : |
58
54
sudo apt-get update
59
55
sudo apt-get install firefox
60
56
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
63
57
64
58
- name : Checkout Repo
65
59
uses : actions/checkout@master
66
60
with :
67
61
# This makes Actions fetch all Git history so run-changed script can diff properly.
68
62
fetch-depth : 0
69
- - name : Set up Node (14 )
63
+ - name : Set up Node (16 )
70
64
uses : actions/setup-node@v3
71
65
with :
72
- node-version : 14 .x
66
+ node-version : 16 .x
73
67
- name : Bump Node memory limit
74
68
run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
75
69
- name : Test setup and yarn install
0 commit comments