File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,11 @@ jobs:
186
186
continue-on-error : true
187
187
188
188
test-firestore-integration :
189
- name : Firestore Integration Tests
189
+ strategy :
190
+ fail-fast : false
191
+ matrix :
192
+ persistence : ['memory', 'persistence']
193
+ name : Firestore Integration Tests (${{ matrix.persistence }})
190
194
needs : build
191
195
runs-on : ubuntu-latest
192
196
steps :
@@ -207,15 +211,11 @@ jobs:
207
211
node-version : 16.x
208
212
- name : Bump Node memory limit
209
213
run : echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
210
- - name : Test setup and yarn install
211
- run : |
212
- cp config/ci.config.json config/project.json
213
- yarn
214
- - name : Set start timestamp env var
215
- run : echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
216
- - name : Run unit tests
217
- run : |
218
- xvfb-run yarn lerna run --concurrency 4 test:ci --scope firebase-firestore-integration-test
219
- node scripts/print_test_logs.js
214
+ - run : cp config/ci.config.json config/project.json
215
+ - run : yarn
216
+ - run : yarn build:${{ matrix.persistence }}
217
+ working-directory : integration/firestore
218
+ - run : xvfb-run yarn karma:singlerun
219
+ working-directory : integration/firestore
220
220
env :
221
221
FIREBASE_TOKEN : ${{ secrets.FIREBASE_CLI_TOKEN }}
Original file line number Diff line number Diff line change 6
6
"build:deps" : " lerna run --scope @firebase/'{app,firestore}' --include-dependencies build" ,
7
7
"build:persistence" : " INCLUDE_FIRESTORE_PERSISTENCE=true gulp compile-tests" ,
8
8
"build:memory" : " INCLUDE_FIRESTORE_PERSISTENCE=false gulp compile-tests" ,
9
+ "karma:singlerun" : " karma start --single-run" ,
9
10
"prettier" : " prettier --write '*.js' '*.ts'" ,
10
- "test" : " yarn build:memory; karma start --single-run; yarn build:persistence; karma start --single-run;" ,
11
- "test:ci" : " node ../../scripts/run_tests_in_ci.js -s test" ,
12
11
"test:persistence" : " yarn build:persistence; karma start --single-run" ,
13
12
"test:persistence:debug" : " yarn build:persistence; karma start --auto-watch --browsers Chrome" ,
14
13
"test:memory" : " yarn build:memory; karma start --single-run" ,
You can’t perform that action at this time.
0 commit comments