Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build verification using GitHub Actions #23

Open
samtstern opened this issue Feb 13, 2018 · 3 comments
Open

Add build verification using GitHub Actions #23

samtstern opened this issue Feb 13, 2018 · 3 comments

Comments

@samtstern
Copy link
Contributor

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.

@crazyhappygame
Copy link

+1 please add Travis configuration for Android and iOS

@MdAbulHossain1
Copy link

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)
});

@DellaBitta
Copy link
Contributor

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

@morganchen12 morganchen12 changed the title Add build verification using Travis CI Add build verification using GitHub Actions Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@stewartmiles @samtstern @DellaBitta @crazyhappygame @MdAbulHossain1 and others