How to set up CI using the Firebase Emulator Suite

preview_player
Показать описание

Imagine you’re working on the next amazing version of your app and changing and expanding how it interacts with Firebase. Obviously, you don’t want to find out that something isn’t quite right after you release the new version. Let's talk about how to automatically catch these things using Firebase Emulator Suite + continuous integration.

0:00 Introduction
1:36 CI in action
3:48 Unit testing security rules
4:30 Integration testing Cloud Functions
6:34 Running tests locally
7:33 Why CI?
9:10 Configuring GitHub workflow
12:33 Inspecting GitHub Actions
13:11 Specifying project ID
15:21 Build with confidence
16:22 Recap and next steps

Resources:

Speaker: Yuchen Shi

Watch more:

#FirebaseSummit

event: Firebase Summit 2020; re_ty: Publish; product: Firebase - Emulator Suite; fullname: Yuchen Shi;
Рекомендации по теме
Комментарии
Автор

I skimmed this video to make sure I was doing stuff in a sane way and wow, if I didn't know about emulators:exec my github actions workflow would be looking pretty crazy with me trying to make a detached process for the database and stuff haha. I'm very, very glad you included that

CatMeowMeow
Автор

thanks for adding a friendly flavour to something that can be difficult to get running

peterhayman
Автор

So @firebase/rules-unit-testing replaces firebase-functions-test because we can now test cloud functions and rules simultaneously. why use firebase-functions-test now?

bryan
Автор

Is the code lab supposed to still be working? I am having problems getting it work. It appears to me that it is in need of an update.

nicennice
Автор

Trying this with Go admin SDK. Getting error "google: could not find default credentials." on Github CI but not on own PC... So strange

madcroc