File tree Expand file tree Collapse file tree 2 files changed +95
-0
lines changed Expand file tree Collapse file tree 2 files changed +95
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Integration Tests
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ integration-test :
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ node-version : [18.x] # Using only Node.js LTS for integration tests
16
+
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Use Node.js ${{ matrix.node-version }}
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : ${{ matrix.node-version }}
24
+
25
+ - name : Setup Java for Firebase Emulator
26
+ uses : actions/setup-java@v4
27
+ with :
28
+ distribution : " temurin"
29
+ java-version : " 17"
30
+
31
+ - name : Install pnpm
32
+ uses : pnpm/action-setup@v2
33
+ with :
34
+ version : 8
35
+
36
+ - name : Install dependencies
37
+ run : pnpm install
38
+
39
+ - name : Install Firebase Tools
40
+ run : npm install -g firebase-tools
41
+
42
+ - name : Create Firebase config
43
+ run : |
44
+ cat > firebase.json << EOF
45
+ {
46
+ "emulators": {
47
+ "auth": {
48
+ "port": 9099
49
+ },
50
+ "ui": {
51
+ "enabled": false
52
+ }
53
+ }
54
+ }
55
+ EOF
56
+
57
+ - name : Start Firebase Emulator and Run Integration Tests
58
+ run : |
59
+ firebase emulators:start &
60
+ sleep 10
61
+ pnpm -F @firebase-ui/core test:integration
Original file line number Diff line number Diff line change
1
+ name : Unit Tests
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ unit-test :
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ node-version : [16.x, 18.x, 20.x]
16
+
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Use Node.js ${{ matrix.node-version }}
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : ${{ matrix.node-version }}
24
+
25
+ - name : Install pnpm
26
+ uses : pnpm/action-setup@v2
27
+ with :
28
+ version : 8
29
+
30
+ - name : Install dependencies
31
+ run : pnpm install
32
+
33
+ - name : Run unit tests
34
+ run : pnpm -F @firebase-ui/core test:unit
You can’t perform that action at this time.
0 commit comments