Skip to content

chore(main): release 0.350.0 #1571

chore(main): release 0.350.0

chore(main): release 0.350.0 #1571

on:
release:
types: [published]
pull_request:
paths:
- 'Spanner/**'
- '.github/workflows/emulator-system-tests-spanner.yaml'
name: Emulator System Tests
permissions:
contents: read
jobs:
test:
name: "Emulator System Tests: Spanner"
runs-on: 'ubuntu-26.04'
services:
emulator:
image: gcr.io/cloud-spanner-emulator/emulator:1.5.59@sha256:f9212d99a52ee9bf39b6e4b397eab09b90d87327dca7a985110801456b40dc9d
ports:
- 9010:9010
- 9020:9020
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Create Spanner instance
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1
with:
version: '516.0.0'
- run: gcloud info
- run: gcloud config configurations create emulator
- run: gcloud config set auth/disable_credentials true
- run: gcloud config set project emulator-project
- run: gcloud config set api_endpoint_overrides/spanner http://localhost:9020/
- run: gcloud spanner instances create google-cloud-php-system-tests --config=emulator-config --description="Test Instance" --nodes=1
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.4'
ini-values: grpc.enable_fork_support=1
tools: pecl
extensions: bcmath, grpc, pcntl
- name: Install dependencies
run: |
# ensure composer uses local Core instead of pulling from packagist
composer config repositories.local --json '{"type":"path", "url": "../Core", "options": {"versions": {"google/cloud-core": "1.100"}},"canonical":false}' -d Spanner
composer update --prefer-dist --no-interaction --no-suggest -d Spanner/
- name: Run system tests
run: |
Spanner/vendor/bin/phpunit -c Spanner/phpunit-system.xml.dist
env:
SPANNER_EMULATOR_HOST: localhost:9010
GOOGLE_CLOUD_PHP_TESTS_KEY_PATH: '.github/emulator/example-key.json'
GOOGLE_CLOUD_PHP_WHITELIST_TESTS_KEY_PATH: '.github/emulator/example-key.json'