quickstart-cpp icon indicating copy to clipboard operation
quickstart-cpp copied to clipboard

Add build verification using GitHub Actions

Open samtstern opened this issue 7 years ago • 3 comments

Since this repository is used for snippets that are included in docs, the code here should have some automated verification that it compiles. Travis CI would be ideal as it's consistent with other Firebase Github projects.

Unit testing is not required but is a nice-to-have.

samtstern avatar Feb 13 '18 20:02 samtstern

+1 please add Travis configuration for Android and iOS

crazyhappygame avatar Sep 06 '19 20:09 crazyhappygame

import ( "fmt" "context"

firebase "firebase.google.com/go" "firebase.google.com/go/auth"

"google.golang.org/api/option" )

opt := option.WithCredentialsFile("path/to/serviceAccountKey.json") app, err := firebase.NewApp(context.Background(), nil, opt) if err != nil { return nil, fmt.Errorf("error initializing app: %v", err) }

import firebase_admin from firebase_admin import credentials

cred = credentials.Certificate("path/to/serviceAccountKey.json") firebase_admin.initialize_app(cred)

FileInputStream serviceAccount = new FileInputStream("path/to/serviceAccountKey.json");

FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(serviceAccount)) .build();

FirebaseApp.initializeApp(options);

var admin = require("firebase-admin");

var serviceAccount = require("path/to/serviceAccountKey.json");

admin.initializeApp({ credential: admin.credential.cert(serviceAccount) });

MdAbulHossain1 avatar May 25 '21 11:05 MdAbulHossain1

Working on this, but using Github Actions instead of Travis CI.

DellaBitta avatar Jul 20 '22 20:07 DellaBitta