File tree 7 files changed +27
-22
lines changed
7 files changed +27
-22
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ jobs:
13
13
strategy :
14
14
matrix :
15
15
node-version :
16
- - 14.x
16
+ - 20.x
17
+ - 22.x
17
18
steps :
18
- - uses : actions/checkout@v1
19
- - uses : actions/setup-node@v1
19
+ - uses : actions/checkout@v4
20
+ - uses : actions/setup-node@v4
20
21
with :
21
22
node-version : ${{ matrix.node-version }}
22
23
29
30
- run : npm install
30
31
- run : npm run bootstrap
31
32
- run : npm run lint
32
- - run : npm run test
33
+ - name : Run tests against emulator
34
+ run : |
35
+ npm install -g firebase-tools
36
+ firebase emulators:exec --only database --project fake-project-id 'npm run test'
33
37
- run : npm run coverage
34
38
35
39
- name : Coveralls
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
// Initialize the Firebase SDK
3
+ // TODO(DEVELOPER): Change the values below using values from the initialization snippet: Firebase Console > Overview > Add Firebase to your web app.
3
4
initializeApp ( {
4
- apiKey : "AIzaSyCR4ND2xwX3kU1IxTn0youF5OlI3x6MFZs " ,
5
- databaseURL : "https://geofire-gh-tests.firebaseio.com " ,
6
- projectId : "geofire-gh-tests "
5
+ apiKey : "<YOUR_API_KEY> " ,
6
+ databaseURL : "<YOUR_DB_URL> " ,
7
+ projectId : "<YOUR_PROJECT_ID> "
7
8
} ) ;
8
9
9
10
// Generate a random Firebase location
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
// Initialize the Firebase SDK
3
3
initializeApp ( {
4
- apiKey : "sAIzaSyCR4ND2xwX3kU1IxTn0youF5OlI3x6MFZs " ,
5
- databaseURL : "https://geofire-gh-tests.firebaseio.com " ,
6
- projectId : "geofire-gh-tests "
4
+ apiKey : "s<YOUR_API_KEY> " ,
5
+ databaseURL : "<YOUR_DB_URL> " ,
6
+ projectId : "<YOUR_PROJECT_ID> "
7
7
} ) ;
8
8
9
9
// Generate a random Firebase location
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
// Initialize the Firebase SDK
3
3
initializeApp ( {
4
- apiKey : "AIzaSyCR4ND2xwX3kU1IxTn0youF5OlI3x6MFZs " ,
5
- databaseURL : "https://geofire-gh-tests.firebaseio.com " ,
6
- projectId : "geofire-gh-tests "
4
+ apiKey : "<YOUR_API_KEY> " ,
5
+ databaseURL : "<YOUR_DB_URL> " ,
6
+ projectId : "<YOUR_PROJECT_ID> "
7
7
} ) ;
8
8
9
9
// Generate a random Firebase location
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
// Initialize the Firebase SDK
3
3
initializeApp ( {
4
- apiKey : "AIzaSyCR4ND2xwX3kU1IxTn0youF5OlI3x6MFZs " ,
5
- databaseURL : "https://geofire-gh-tests.firebaseio.com " ,
6
- projectId : "geofire-gh-tests "
4
+ apiKey : "<YOUR_API_KEY> " ,
5
+ databaseURL : "<YOUR_DB_URL> " ,
6
+ projectId : "<YOUR_PROJECT_ID> "
7
7
} ) ;
8
8
9
9
// Generate a random Firebase location
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
// Initialize the Firebase SDK
3
3
initializeApp ( {
4
- apiKey : "AIzaSyCR4ND2xwX3kU1IxTn0youF5OlI3x6MFZs " ,
5
- databaseURL : "https://geofire-gh-tests.firebaseio.com " ,
6
- projectId : "geofire-gh-tests "
4
+ apiKey : "<YOUR_API_KEY> " ,
5
+ databaseURL : "<YOUR_DB_URL> " ,
6
+ projectId : "<YOUR_PROJECT_ID> "
7
7
} ) ;
8
8
9
9
// Generate a random Firebase location
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export let geoFireRef: DatabaseReference,
29
29
30
30
// Initialize Firebase
31
31
const config = {
32
- apiKey : 'AIzaSyCR4ND2xwX3kU1IxTn0youF5OlI3x6MFZs ' ,
33
- databaseURL : 'https://geofire-gh-tests .firebaseio.com' ,
34
- projectId : 'geofire-gh-tests '
32
+ apiKey : '<YOUR_API_KEY> ' ,
33
+ databaseURL : 'https://fake-project-id .firebaseio.com' ,
34
+ projectId : 'fake-project-id '
35
35
} ;
36
36
initializeApp ( config ) ;
37
37
You can’t perform that action at this time.
0 commit comments