From 91e41626eaeb7b846d15dad393856fa97cc4ea8d Mon Sep 17 00:00:00 2001 From: bponders12-cell Date: Tue, 1 Sep 2026 21:04:21 -0400 Subject: [PATCH] Run Firebase Emulator ownership tests in CI --- .github/workflows/firebase-emulator-tests.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/firebase-emulator-tests.yml diff --git a/.github/workflows/firebase-emulator-tests.yml b/.github/workflows/firebase-emulator-tests.yml new file mode 100644 index 0000000..43e043d --- /dev/null +++ b/.github/workflows/firebase-emulator-tests.yml @@ -0,0 +1,35 @@ +name: MotorSignal Firebase Emulator Tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +permissions: + contents: read + +jobs: + firestore-rules: + name: Firestore ownership rules + runs-on: ubuntu-latest + defaults: + run: + working-directory: firebase/emulator-tests + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Set up Node + uses: actions/setup-node@v6 + with: + node-version: '22' + cache: npm + cache-dependency-path: firebase/emulator-tests/package-lock.json + + - name: Install dependencies + run: npm install + + - name: Run Firestore Emulator tests + run: npm run test:emulator