How to set up CI using the Firebase Emulator Suite
summary
Shows how to run the Firebase Emulator Suite inside GitHub Actions so unit tests for Firestore security rules and integration tests for Cloud Functions run on every push. Uses firebase emulators:exec npm test to spin up Firestore and Functions emulators with the right env vars, notes .firebaserc is often gitignored so CI needs --project=example (or your real project ID) to avoid “no active project”, and demonstrates fixing the YAML so tests run and pass.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:36CI in action
- 3:48Unit testing security rules
- 4:30Integration testing Cloud Functions
- 6:34Running tests locally
- 7:33Why CI?
- 9:10Configuring GitHub workflow
- 12:33Inspecting GitHub Actions
- 13:11Specifying project ID
- 15:21Build with confidence
- 16:22Recap and next steps
related talks
15mStreamlining Firebase Development with local Emulators
12mYour quickstart to the Firebase Emulator Suite
09mLocal development using the new Storage Emulator
22mThese 5 Firebase tools will help you test and run your app with confidence
26mDevelop Rock-Solid Apps with Firebase
35mTesting Firebase Android SDKs at Google
27mGra Fi Te: Leveraging Gradle and Firebase for Android Testing
34mBuilding Android Testing Infrastructure
