@@ -230,6 +230,63 @@ jobs:
230230 env :
231231 BROWSERS : ' Firefox'
232232 EXPERIMENTAL_MODE : true
233+
234+ compat-test-safari :
235+ name : Test Firestore Compatible on Firefox
236+ # Whatever version of Firefox comes with 22.04 is causing Firefox
237+ # startup to hang when launched by karma. Need to look further into
238+ # why.
239+ runs-on : macos-latest
240+ needs : build
241+ if : ${{ needs.build.outputs.changed == 'true'}}
242+ steps :
243+ - name : Set up Node (20)
244+ uses : actions/setup-node@v3
245+ with :
246+ node-version : 20.x
247+ - name : Download build archive
248+ uses : actions/download-artifact@v3
249+ with :
250+ name : build.tar.gz
251+ - name : Unzip build artifact
252+ run : tar xf build.tar.gz
253+ - name : Test setup and yarn install
254+ run : cp config/ci.config.json config/project.json
255+ - name : Run compat tests
256+ run : cd packages/firestore-compat && yarn run test:ci
257+ env :
258+ BROWSERS : ' Safari'
259+
260+ test-safari :
261+ name : Test Firestore on Safari
262+ strategy :
263+ matrix :
264+ test-name : ["test:browser", "test:travis", "test:lite:browser", "test:browser:prod:nameddb", "test:lite:browser:nameddb"]
265+ # Whatever version of Firefox comes with 22.04 is causing Firefox
266+ # startup to hang when launched by karma. Need to look further into
267+ # why.
268+ runs-on : macos-latest
269+ needs : build
270+ if : ${{ needs.build.outputs.changed == 'true'}}
271+ steps :
272+ - name : Download build archive
273+ uses : actions/download-artifact@v3
274+ with :
275+ name : build.tar.gz
276+ - name : Unzip build artifact
277+ run : tar xf build.tar.gz
278+ - name : Set up Node (20)
279+ uses : actions/setup-node@v3
280+ with :
281+ node-version : 20.x
282+ - name : Test setup and yarn install
283+ run : cp config/ci.config.json config/project.json
284+ - name : Run tests
285+ run : cd packages/firestore && yarn run ${{ matrix.test-name }}
286+ env :
287+ BROWSERS : ' Safari'
288+ EXPERIMENTAL_MODE : true
289+
233290
234291 # A job that fails if any required job in the test matrix fails,
235292 # to be used as a required check for merging.
0 commit comments