forked from googleapis/google-cloud-php
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.29 KB
/
bigtable-emulator-system-tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- main
paths:
- 'Bigtable/**'
- '.github/workflows/bigtable-emulator-system-tests.yaml'
- '.github/emulator/**'
pull_request:
paths:
- 'Bigtable/**'
- '.github/workflows/bigtable-emulator-system-tests.yaml'
- '.github/emulator/**'
name: Run Bigtable System Tests With Emulator
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./.github/emulator/start-emulator.sh bigtable 419.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 Bigtable/
composer config repositories.local path "../Core" -d Bigtable
composer require "google/cloud-core:*" -d Bigtable/
- name: Run system tests
run: |
Bigtable/vendor/bin/phpunit -c Bigtable/phpunit-system.xml.dist --group bigtable
env:
BIGTABLE_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'