Skip to content

build(deps): bump com.google.cloud:google-cloud-shared-config from 1.11.3 to 1.12.0 in /benchmarks/latency-comparison/java #4260

build(deps): bump com.google.cloud:google-cloud-shared-config from 1.11.3 to 1.12.0 in /benchmarks/latency-comparison/java

build(deps): bump com.google.cloud:google-cloud-shared-config from 1.11.3 to 1.12.0 in /benchmarks/latency-comparison/java #4260

on:
push:
branches:
- postgresql-dialect
pull_request:
name: go-sample-test
env:
GOOGLE_CLOUD_PROJECT: "span-cloud-testing"
GOOGLE_CLOUD_INSTANCE: "pgadapter-testing"
GOOGLE_CLOUD_DATABASE: "testdb_integration"
GOOGLE_CLOUD_ENDPOINT: "spanner.googleapis.com"
jobs:
check-env:
outputs:
has-key: ${{ steps.project-id.outputs.defined }}
runs-on: ubuntu-latest
steps:
- id: project-id
env:
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
if: "${{ env.GCP_PROJECT_ID != '' }}"
run: echo "defined=true" >> "$GITHUB_OUTPUT"
sample-test:
needs: [check-env]
if: needs.check-env.outputs.has-key == 'true'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
- run: java -version
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '^1.20.0'
- name: Auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.JSON_SERVICE_ACCOUNT_CREDENTIALS }}
- name: Setup GCloud
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
- run: go version
- name: Run Go wrapper tests
working-directory: ./wrappers/golang
run: go test