Skip to content

chore(main): release 0.227.0 #9025

chore(main): release 0.227.0

chore(main): release 0.227.0 #9025

Workflow file for this run

name: Test Suite
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
php: [ "7.4", "8.0", "8.1", "8.2" ]
extensions: ["grpc-1.54.0"]
type: ["Unit Test"]
include:
- platform: "ubuntu-latest"
php: "7.4"
extensions: "protobuf,grpc-1.54.0"
type: "Unit Test + protobuf extension"
name: PHP ${{ matrix.php }} ${{ matrix.type }} (${{ matrix.platform }})
runs-on: ${{ matrix.platform }}
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Setup cache environment
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
key: cache-key-1 # increment to bust the cache
- name: Cache extensions
uses: actions/cache@v3
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ steps.extcache.outputs.key }}
- name: Setup PHP
uses: shivammathur/setup-php@verbose
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
- name: Install Dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: composer --no-interaction --no-ansi --no-progress update
- if: ${{ matrix.platform == 'windows-latest' }}
name: Run Unit Test Suite (Windows)
run: |
vendor/bin/phpunit -c phpunit.xml.dist
if ( "$?" -ne "0" )
{
echo "*** RETRYING FLAKEY PHPUNIT ON WINDOWS ***"
vendor/bin/phpunit -c phpunit.xml.dist
}
- if: ${{ matrix.platform != 'windows-latest' }}
name: Run Unit Test Suite
run: |
vendor/bin/phpunit -c phpunit.xml.dist
- if: ${{ matrix.platform != 'windows-latest' }}
name: Run Snippet Test Suite
run: |
vendor/bin/phpunit -c phpunit-snippets.xml.dist --verbose
test_packages:
name: Package Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@verbose
with:
php-version: '8.1'
extensions: grpc
- name: Run Package Test Suites
run: bash .github/run-package-tests.sh
test_dev_commands:
name: Dev Commands Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@verbose
with:
php-version: "8.1"
- name: "Install dependencies"
run: composer --no-interaction --no-ansi --no-progress update -d dev
- name: Run Dev Unit Test Suite
run: dev/vendor/bin/phpunit -c dev/phpunit.xml.dist