File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
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 :
@@ -211,11 +215,9 @@ jobs:
211
215
run : |
212
216
cp config/ci.config.json config/project.json
213
217
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
218
+ - run : yarn build:${{ matrix.persistence }}
219
+ working-directory : integration/firestore
220
+ - run : xvfb-run yarn karma:singlerun
221
+ working-directory : integration/firestore
220
222
env :
221
223
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