Skip to content

Commit

Permalink
Update(workflow): use firebase tools directly
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldkri committed Sep 10, 2024
1 parent 2001456 commit 67f3aa5
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ jobs:
test:
runs-on: ubuntu-latest

services:
firebase:
image: firebase/emulators
ports:
- 8080:8080
- 8085:8085
options: --entrypoint sh
volumes:
- .:/app

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -41,12 +31,18 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Set up Firestore emulator
- name: Install Firebase CLI
run: |
sudo pnpm add -g firebase-tools
- name: Start Firestore emulator
run: pnpm run emulators:start
run: |
firebase emulators:start --only firestore --project demo --import=./emulator_data --export-on-exit=./emulator_data &
env:
FIRESTORE_EMULATOR_HOST: 'localhost:8080'

- name: Wait for Firestore emulator to start
run: sleep 5

- name: Run Unit Tests
run: pnpm run test

0 comments on commit 67f3aa5

Please sign in to comment.