File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,24 @@ jobs:
17
17
- name : Setup node
18
18
uses : actions/setup-node@v4
19
19
with :
20
- node-version : ' 18 '
20
+ node-version : ' 20 '
21
21
check-latest : true
22
22
- name : Setup pnpm
23
23
uses : pnpm/action-setup@v4
24
24
with :
25
25
version : latest
26
26
- name : Install dependencies
27
27
run : pnpm install
28
- - name : Run tests
29
- run : pnpm test
28
+ - name : Install Firebase CLI
29
+
30
+ - name : Start Firebase emulator and run tests
31
+ run : |
32
+ firebase emulators:start --only auth --project demo-test &
33
+ sleep 15
34
+ # Wait for emulator to be ready
35
+ until wget -q --spider http://localhost:9099 2>/dev/null; do
36
+ echo "Waiting for emulator to start..."
37
+ sleep 2
38
+ done
39
+ echo "Emulator is ready, running tests..."
40
+ pnpm test
Original file line number Diff line number Diff line change 2
2
"name" : " @firebaseui/root" ,
3
3
"private" : true ,
4
4
"scripts" : {
5
- "emulators" : " firebase emulators:start --only auth" ,
5
+ "emulators" : " firebase emulators:start --only auth --project demo-test " ,
6
6
"build" : " pnpm run build:translations && pnpm run build:core && pnpm run build:react" ,
7
7
"build:core" : " pnpm --filter=@firebase-ui/core run build" ,
8
8
"build:translations" : " pnpm --filter=@firebase-ui/translations run build" ,
You can’t perform that action at this time.
0 commit comments