Skip to content

Commit cee66b6

Browse files
authored
chore(ci): add workflow for running google/cloud tests before releases (#493)
1 parent 90dc9c3 commit cee66b6

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release Pre-Check
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
permissions:
6+
contents: read
7+
jobs:
8+
release-suite:
9+
runs-on: ubuntu-latest
10+
name: Run googleapis/google-cloud-php tests against latest version
11+
if: github.event.pull_request.user.login == 'release-please[bot]'
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Clone googleapis/google-cloud-php
15+
uses: actions/checkout@master
16+
with:
17+
repository: googleapis/google-cloud-php
18+
path: google-cloud-php
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.1'
23+
extensions: grpc
24+
- name: Configure google/auth to dev-main
25+
run: |
26+
cd google-cloud-php
27+
composer install -q -d dev
28+
dev/google-cloud update-deps google/auth 'dev-main as 1.200.0' --add=dev
29+
- name: Run google/cloud package tests
30+
run: |
31+
cd google-cloud-php
32+
bash .github/run-package-tests.sh
33+

0 commit comments

Comments
 (0)