chore: Update Compute Engine API to revision 20241201 (#971) (#7928) #2
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'Firestore/**' | |
- '.github/workflows/system-tests-firestore-emulator.yaml' | |
- '.github/emulator/**' | |
pull_request: | |
paths: | |
- 'Firestore/**' | |
- '.github/workflows/system-tests-firestore-emulator.yaml' | |
- '.github/emulator/**' | |
name: Run Firestore System Tests With Emulator | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./.github/emulator/start-emulator.sh firestore 453.0.0-emulators | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
tools: pecl | |
extensions: grpc | |
- name: Install dependencies | |
run: | | |
composer config minimum-stability dev -d Firestore/ | |
composer config repositories.local path "../Core" -d Firestore | |
composer require "google/cloud-core:*" -d Firestore/ | |
- name: Run system tests | |
run: | | |
Firestore/vendor/bin/phpunit -c Firestore/phpunit-system.xml.dist --exclude-group gapic | |
env: | |
FIRESTORE_EMULATOR_HOST: localhost:8085 | |
GOOGLE_CLOUD_PHP_TESTS_KEY_PATH: '.github/emulator/example-key.json' | |
GOOGLE_CLOUD_PHP_WHITELIST_TESTS_KEY_PATH: '.github/emulator/example-key.json' |