Skip to content

Commit 4dffc94

Browse files
committed
ci(*): added emulator support
1 parent 48088b8 commit 4dffc94

File tree

3 files changed

+2211
-23
lines changed

3 files changed

+2211
-23
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,9 @@ jobs:
2525
version: latest
2626
- name: Install dependencies
2727
run: pnpm install
28-
- name: Run tests
29-
run: pnpm test
28+
- name: Start Firebase emulator and run tests
29+
run: |
30+
firebase emulators:start --only auth --project demo-test &
31+
sleep 15
32+
echo "Emulator started, running tests..."
33+
pnpm test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@firebaseui/root",
33
"private": true,
44
"scripts": {
5-
"emulators": "firebase emulators:start --only auth",
5+
"emulators": "firebase emulators:start --only auth --project demo-test",
66
"build": "pnpm run build:translations && pnpm run build:core && pnpm run build:react",
77
"build:core": "pnpm --filter=@firebase-ui/core run build",
88
"build:translations": "pnpm --filter=@firebase-ui/translations run build",
@@ -35,6 +35,7 @@
3535
"release:all": "pnpm i && pnpm run release:core && pnpm run release:translations && pnpm run release:react && pnpm run release:styles && pnpm run release:angular"
3636
},
3737
"devDependencies": {
38+
"firebase-tools": "^13.0.0",
3839
"rimraf": "^6.0.1",
3940
"typescript": "^5.7.3",
4041
"vite": "^6.0.11",

0 commit comments

Comments
 (0)