forked from GoogleCloudPlatform/nodejs-docs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use alloydb-go-connector (GoogleCloudPlatform#2)
- Loading branch information
Showing
14 changed files
with
198 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 2021 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: tests | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: "unit tests" | ||
runs-on: ubuntu-latest | ||
environment: "Private Repos" | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
# TODO remove this step and the following when the repo is public | ||
- name: Checkout AlloyDB connector | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "googlecloudplatform/alloydb-go-connector" | ||
path: "alloydb-go-connector" | ||
token: ${{ secrets.GH_PAT }} | ||
- name: Point to local connector | ||
run: | | ||
go mod edit -replace=cloud.google.com/go/alloydbconn=./alloydb-go-connector | ||
- name: Run tests | ||
run: | | ||
go test -v -race -cover -short ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
module github.com/GoogleCloudPlatform/cloudsql-proxy/v2 | ||
module github.com/GoogleCloudPlatform/alloydb-auth-proxy | ||
|
||
go 1.16 | ||
|
||
require ( | ||
cloud.google.com/go/cloudsqlconn v0.2.1-0.20220401153611-87e713b37755 | ||
cloud.google.com/go/compute v1.5.0 | ||
github.com/GoogleCloudPlatform/cloudsql-proxy v1.29.0 | ||
github.com/coreos/go-systemd/v22 v22.3.2 | ||
github.com/denisenkom/go-mssqldb v0.12.0 | ||
github.com/go-sql-driver/mysql v1.6.0 | ||
cloud.google.com/go/alloydbconn v0.0.0-0.20220401153611-87e713b37755 | ||
github.com/google/go-cmp v0.5.7 | ||
github.com/hanwen/go-fuse/v2 v2.1.0 | ||
github.com/jackc/pgx/v4 v4.15.0 | ||
github.com/lib/pq v1.10.5 | ||
github.com/lib/pq v1.10.5 // indirect | ||
github.com/spf13/cobra v1.2.1 | ||
go.uber.org/zap v1.21.0 | ||
golang.org/x/net v0.0.0-20220325170049-de3da57026de | ||
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a | ||
golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 | ||
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 | ||
google.golang.org/api v0.74.0 | ||
golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 // indirect | ||
google.golang.org/api v0.74.0 // indirect | ||
google.golang.org/genproto v0.0.0-20220401170504-314d38edb7de // indirect | ||
) | ||
|
||
replace cloud.google.com/go/alloydbconn => ../alloydb-go-connector |
Oops, something went wrong.