Skip to content

feat: update API sources and regenerate #624

feat: update API sources and regenerate

feat: update API sources and regenerate #624

on:
release:
types: [published]
pull_request:
paths:
- 'PubSub/**'
- '.github/workflows/emulator-system-tests-pubsub.yaml'
- '.github/emulator/**'
name: Emulator System Tests
permissions:
contents: read
jobs:
test:
name: "Emulator System Tests: PubSub"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: ./.github/emulator/start-emulator.sh pubsub
- name: Setup PHP
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.2'
tools: pecl
extensions: grpc
- name: Install dependencies
run: |
composer config minimum-stability dev -d PubSub/
composer config repositories.local path "../Core" -d PubSub
composer require "google/cloud-core:*" -d PubSub/
- name: Run system tests
run: |
PubSub/vendor/bin/phpunit -c PubSub/phpunit-system.xml.dist --exclude-group gapic
env:
PUBSUB_EMULATOR_HOST: localhost:8085
PROJECT_ID: my-project-id
GOOGLE_CLOUD_PHP_TESTS_KEY_PATH: '.github/emulator/example-key.json'
GOOGLE_CLOUD_PHP_WHITELIST_TESTS_KEY_PATH: '.github/emulator/example-key.json'