17
17
build :
18
18
name : Build the SDK
19
19
runs-on : ubuntu-latest
20
+ env :
21
+ NODE_OPTIONS : " --max_old_space_size=4096"
20
22
steps :
21
23
# Install Chrome so the correct version of webdriver can be installed by chromedriver when
22
24
# setting up the repo. This must be done to build and execute Auth properly.
28
30
uses : actions/setup-node@v3
29
31
with :
30
32
node-version : 16.x
31
- - name : Bump Node memory limit
32
- run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
33
33
- name : Test setup and yarn install
34
34
run : |
35
35
cp config/ci.config.json config/project.json
@@ -54,12 +54,13 @@ jobs:
54
54
name : (bulk) Node.js and Browser (Chrome) Tests
55
55
needs : build
56
56
runs-on : ubuntu-latest
57
+ env :
58
+ NODE_OPTIONS : " --max_old_space_size=4096"
57
59
steps :
58
60
# install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo
59
61
- name : install Chrome stable
60
62
run : |
61
- sudo apt-get update
62
- sudo apt-get install google-chrome-stable
63
+ npx @puppeteer/browsers install chrome@stable
63
64
- name : Download build archive
64
65
uses : actions/download-artifact@v3
65
66
with :
70
71
uses : actions/setup-node@v3
71
72
with :
72
73
node-version : 16.x
73
- - name : Bump Node memory limit
74
- run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
75
74
- name : Test setup and yarn install
76
75
run : |
77
76
cp config/ci.config.json config/project.json
@@ -98,12 +97,14 @@ jobs:
98
97
name : (Auth) Node.js and Browser (Chrome) Tests
99
98
needs : build
100
99
runs-on : ubuntu-latest
100
+ env :
101
+ NODE_OPTIONS : " --max_old_space_size=4096"
101
102
steps :
102
103
# install Chrome first, so the correct version of webdriver can be installed by chromedriver
103
104
# when setting up the repo
104
- - name : install Chrome stable
105
- run : |
106
- npx @puppeteer/browsers install chrome@stable
105
+ - name : install Chrome stable
106
+ run : |
107
+ npx @puppeteer/browsers install chrome@stable
107
108
- name : Download build archive
108
109
uses : actions/download-artifact@v3
109
110
with :
@@ -114,8 +115,6 @@ jobs:
114
115
uses : actions/setup-node@v3
115
116
with :
116
117
node-version : 16.x
117
- - name : Bump Node memory limit
118
- run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
119
118
- name : Test setup and yarn install
120
119
run : |
121
120
cp config/ci.config.json config/project.json
@@ -141,12 +140,16 @@ jobs:
141
140
name : (Firestore) Node.js and Browser (Chrome) Tests
142
141
needs : build
143
142
runs-on : ubuntu-latest
143
+ if : false
144
+ # Disable test for now since it's failing 100% of the time since
145
+ # https://github.com/firebase/firebase-js-sdk/pull/7453 and it needs to be investigated.
146
+ env :
147
+ NODE_OPTIONS : " --max_old_space_size=4096"
144
148
steps :
145
149
# install Chrome so the correct version of webdriver can be installed by chromedriver when setting up the repo
146
150
- name : install Chrome stable
147
151
run : |
148
- sudo apt-get update
149
- sudo apt-get install google-chrome-stable
152
+ npx @puppeteer/browsers install chrome@stable
150
153
- name : Download build archive
151
154
uses : actions/download-artifact@v3
152
155
with :
@@ -157,8 +160,6 @@ jobs:
157
160
uses : actions/setup-node@v3
158
161
with :
159
162
node-version : 16.x
160
- - name : Bump Node memory limit
161
- run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
162
163
- name : Test setup and yarn install
163
164
run : |
164
165
cp config/ci.config.json config/project.json
@@ -171,6 +172,7 @@ jobs:
171
172
node scripts/print_test_logs.js
172
173
env :
173
174
FIREBASE_TOKEN : ${{ secrets.FIREBASE_CLI_TOKEN }}
175
+ EXPERIMENTAL_MODE : true
174
176
- name : Generate coverage file
175
177
run : yarn ci:coverage
176
178
- name : Run coverage
@@ -179,7 +181,6 @@ jobs:
179
181
github-token : ${{ secrets.GITHUB_TOKEN }}
180
182
path-to-lcov : ./lcov-all.info
181
183
continue-on-error : true
182
-
183
184
test-firestore-integration :
184
185
strategy :
185
186
fail-fast : false
@@ -188,12 +189,13 @@ jobs:
188
189
name : Firestore Integration Tests (${{ matrix.persistence }})
189
190
needs : build
190
191
runs-on : ubuntu-latest
192
+ env :
193
+ NODE_OPTIONS : " --max_old_space_size=4096"
191
194
steps :
192
195
# install Chrome so the correct version of webdriver can be installed by chromedriver when setting up the repo
193
196
- name : install Chrome stable
194
197
run : |
195
- sudo apt-get update
196
- sudo apt-get install google-chrome-stable
198
+ npx @puppeteer/browsers install chrome@stable
197
199
- name : Download build archive
198
200
uses : actions/download-artifact@v3
199
201
with :
@@ -204,8 +206,6 @@ jobs:
204
206
uses : actions/setup-node@v3
205
207
with :
206
208
node-version : 16.x
207
- - name : Bump Node memory limit
208
- run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
209
209
- run : cp config/ci.config.json config/project.json
210
210
- run : yarn
211
211
- run : yarn build:${{ matrix.persistence }}
0 commit comments