How to run `firebase emulators:exec` on github actions?
See original GitHub issueI’m trying to make this working on Github Actions by running firebase emulators:exec
, but this command requires java.
I’m receiving
Error: firestore: Firestore Emulator has exited because java is not installed, you can install it from https://openjdk.java.net/install/
on Github Actions CI when on step…
- name: Setting-up JAVA
uses: actions/setup-java@v1.3.0
with:
java-version: "12.x"
- name: Test
uses: w9jds/firebase-action@v1.3.1
env:
JAVA_HOME: ${{ env.JAVA_HOME }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
GCLOUD_PROJECT: ${{ secrets.nextGCLOUD_PROJECT }}
PROJECT_ID: ${{ secrets.nextFIREBASE_PROJECTID }}
with:
args: emulators:exec --only functions,firestore \"npm run test --exit -- --forceExit --detectOpenHandles\"
I already post this question on Stackoverflow but still no answer.
I was thinking if anyone here can help me with that?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Run firebase emulators on github actions - Stack Overflow
At the time of writing, the unofficial firebase-action has ... ci - run: firebase emulators:exec --only firestore \"npm run test --exit\".
Read more >End-to-end testing with Firebase Emulator and Github Actions
The Firebase emulator CLI allows for importing data as it starts up. So the first step is to get an export of the...
Read more >Deploy to live & preview channels via GitHub pull requests
Set up the GitHub Action to deploy to Firebase Hosting · If you've NOT set up Hosting, run this version of the command...
Read more >Setting up CI with Github Actions
There are two kinds of actions: run: commands that execute basic actions, ... The script here also tells Github to cache the Firebase...
Read more >Caching the Firebase Emulator on GitHub Actions
The step above will cache the emulator on GitHub Actions. The next time you run your tests, Firebase won't download the emulator again ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Installing firebase-tools globally works, yeah
J’ai toujours l’erreur
Firestore Emulator has exited because java is not installed