Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,30 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}/go
strategy:
matrix:
go: [1.11, 1.12, 1.13]
steps:

steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code into GOPATH
- name: Check out code
uses: actions/checkout@v2
with:
path: go/src/firebase.google.com/go

- name: Get dependencies
run: go get -t -v $(go list ./... | grep -v integration)

- name: Run Linter
run: |
go get golang.org/x/lint/golint
$GOPATH/bin/golint -set_exit_status firebase.google.com/go/...
go get -u golang.org/x/lint/golint
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
$GOLINT -set_exit_status ./...

- name: Run Unit Tests
if: success() || failure()
run: go test -v -race -test.short firebase.google.com/go/...
run: go test -v -race -test.short ./...

- name: Run Formatter
working-directory: ./go/src/firebase.google.com/go
if: matrix.go != '1.11'
run: |
if [[ ! -z "$(gofmt -l -s .)" ]]; then
Expand All @@ -46,4 +38,4 @@ jobs:
fi

- name: Run Static Analyzer
run: go vet -v firebase.google.com/go/...
run: go vet -v ./...
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"strings"
"time"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/transport"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/auth_appengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package auth
import (
"context"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/appengine"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/auth_std.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package auth // import "firebase.google.com/go/auth"
import (
"context"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
)

func newCryptoSigner(ctx context.Context, conf *internal.AuthConfig) (cryptoSigner, error) {
Expand Down
2 changes: 1 addition & 1 deletion auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"
"time"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"golang.org/x/oauth2/google"
"google.golang.org/api/option"
"google.golang.org/api/transport"
Expand Down
2 changes: 1 addition & 1 deletion auth/export_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/url"
"strconv"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/iterator"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/hash/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"errors"
"fmt"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
)

// Bcrypt represents the BCRYPT hash algorithm.
Expand Down
4 changes: 2 additions & 2 deletions auth/hash/hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"reflect"
"testing"

"firebase.google.com/go/auth"
"firebase.google.com/go/internal"
"firebase.google.com/go/v4/auth"
"firebase.google.com/go/v4/internal"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion auth/import_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"errors"
"fmt"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
)

const maxImportUsers = 1000
Expand Down
2 changes: 1 addition & 1 deletion auth/provider_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"strconv"
"strings"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/iterator"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/tenant_mgt.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strconv"
"strings"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/iterator"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/token_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"strings"
"sync"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/transport"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/token_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"strings"
"testing"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
)

func TestEncodeToken(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion auth/token_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"sync"
"time"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/option"
"google.golang.org/api/transport"
)
Expand Down
2 changes: 1 addition & 1 deletion auth/token_verifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"
"time"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
)

func TestNewIDTokenVerifier(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion auth/user_mgt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"strings"
"time"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/googleapi"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/user_mgt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"testing"
"time"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/iterator"
)

Expand Down
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"runtime"
"strings"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/option"
)

Expand Down
2 changes: 1 addition & 1 deletion db/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"runtime"
"testing"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
"google.golang.org/api/option"
)

Expand Down
4 changes: 2 additions & 2 deletions db/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package db // import "firebase.google.com/go/db"
package db // import "firebase.google.com/go/v4/db"

import (
"context"
Expand All @@ -23,7 +23,7 @@ import (
"strconv"
"strings"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
)

// QueryNode represents a data node retrieved from an ordered query.
Expand Down
2 changes: 1 addition & 1 deletion db/ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"
"strings"

"firebase.google.com/go/internal"
"firebase.google.com/go/v4/internal"
)

// txnRetires is the maximum number of times a transaction is retried before giving up. Transaction
Expand Down
14 changes: 7 additions & 7 deletions firebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// Package firebase is the entry point to the Firebase Admin SDK. It provides functionality for initializing App
// instances, which serve as the central entities that provide access to various other Firebase services exposed
// from the SDK.
package firebase // import "firebase.google.com/go"
package firebase // import "firebase.google.com/go/v4"

import (
"context"
Expand All @@ -25,12 +25,12 @@ import (
"os"

"cloud.google.com/go/firestore"
"firebase.google.com/go/auth"
"firebase.google.com/go/db"
"firebase.google.com/go/iid"
"firebase.google.com/go/internal"
"firebase.google.com/go/messaging"
"firebase.google.com/go/storage"
"firebase.google.com/go/v4/auth"
"firebase.google.com/go/v4/db"
"firebase.google.com/go/v4/iid"
"firebase.google.com/go/v4/internal"
"firebase.google.com/go/v4/messaging"
"firebase.google.com/go/v4/storage"
"golang.org/x/oauth2/google"
"google.golang.org/api/option"
"google.golang.org/api/transport"
Expand Down
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module firebase.google.com/go/v4

go 1.11

require (
cloud.google.com/go/firestore v1.1.1
cloud.google.com/go/storage v1.0.0
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
google.golang.org/api v0.17.0
google.golang.org/appengine v1.6.1
)
Loading