File tree Expand file tree Collapse file tree 7 files changed +27
-22
lines changed
Expand file tree Collapse file tree 7 files changed +27
-22
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ jobs:
1313 strategy :
1414 matrix :
1515 node-version :
16- - 14.x
16+ - 20.x
17+ - 22.x
1718 steps :
18- - uses : actions/checkout@v1
19- - uses : actions/setup-node@v1
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-node@v4
2021 with :
2122 node-version : ${{ matrix.node-version }}
2223
2930 - run : npm install
3031 - run : npm run bootstrap
3132 - 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'
3337 - run : npm run coverage
3438
3539 - name : Coveralls
Original file line number Diff line number Diff line change 11( function ( ) {
22 // 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.
34 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> "
78 } ) ;
89
910 // Generate a random Firebase location
Original file line number Diff line number Diff line change 11( function ( ) {
22 // Initialize the Firebase SDK
33 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> "
77 } ) ;
88
99 // Generate a random Firebase location
Original file line number Diff line number Diff line change 11( function ( ) {
22 // Initialize the Firebase SDK
33 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> "
77 } ) ;
88
99 // Generate a random Firebase location
Original file line number Diff line number Diff line change 11( function ( ) {
22 // Initialize the Firebase SDK
33 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> "
77 } ) ;
88
99 // Generate a random Firebase location
Original file line number Diff line number Diff line change 11( function ( ) {
22 // Initialize the Firebase SDK
33 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> "
77 } ) ;
88
99 // Generate a random Firebase location
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export let geoFireRef: DatabaseReference,
2929
3030// Initialize Firebase
3131const 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 '
3535} ;
3636initializeApp ( config ) ;
3737
You can’t perform that action at this time.
0 commit comments