adding php8.2 to build matrix (#896)

* adding 8.2 to build matrix

* 8.2 experimental

* relax deptrac

* allow style check to fail if experimental

* bump checkout action version
This commit is contained in:
Brett McBride 2022-12-13 01:05:09 +11:00 committed by GitHub
parent 616b356b83
commit 02c1782667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 8 deletions

View File

@ -8,18 +8,19 @@ on:
jobs: jobs:
php: php:
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }} continue-on-error: ${{ matrix.experimental }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
php-version: ['7.4', '8.0', '8.1'] php-version: ['7.4', '8.0', '8.1']
os: [ubuntu-latest]
extensions: ['ast, grpc', 'ast, grpc, protobuf-3.21.5']
experimental: [false] experimental: [false]
include:
- php-version: 8.2
experimental: true
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -27,14 +28,14 @@ jobs:
php-version: ${{ matrix.php-version }} php-version: ${{ matrix.php-version }}
coverage: xdebug coverage: xdebug
tools: php-cs-fixer tools: php-cs-fixer
extensions: ${{ matrix.extensions }} extensions: "ast, grpc, protobuf"
- name: Validate composer.json - name: Validate composer.json
run: composer validate run: composer validate
- name: Cache Composer packages - name: Cache Composer packages
id: composer-cache id: composer-cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: vendor path: vendor
key: ${{ runner.os }}-${{ matrix.php-version }}-php-${{ hashFiles('**/composer.json') }} key: ${{ runner.os }}-${{ matrix.php-version }}-php-${{ hashFiles('**/composer.json') }}
@ -46,6 +47,7 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest run: composer install --prefer-dist --no-progress --no-suggest
- name: Check Style - name: Check Style
continue-on-error: ${{ matrix.experimental }}
run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --stop-on-violation --using-cache=no -vvv run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --stop-on-violation --using-cache=no -vvv
- name: Check Dependencies - name: Check Dependencies

View File

@ -8,7 +8,7 @@ jobs:
name: OpenTelemetry PHP base docker image creation name: OpenTelemetry PHP base docker image creation
strategy: strategy:
matrix: matrix:
php-version: ['7.4', '8.0', '8.1'] php-version: ['7.4', '8.0', '8.1', '8.2']
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
packages: write packages: write

View File

@ -104,7 +104,7 @@
"psalm/plugin-mockery": "^0.9", "psalm/plugin-mockery": "^0.9",
"psalm/plugin-phpunit": "^0.18", "psalm/plugin-phpunit": "^0.18",
"psalm/psalm": "^4.0", "psalm/psalm": "^4.0",
"qossmic/deptrac-shim": "^0.24", "qossmic/deptrac-shim": "^0 || ^1",
"rector/rector": "^0.13.7", "rector/rector": "^0.13.7",
"symfony/http-client": "^5.2" "symfony/http-client": "^5.2"
}, },

View File

@ -9,6 +9,7 @@ services:
XDEBUG_MODE: ${XDEBUG_MODE:-off} XDEBUG_MODE: ${XDEBUG_MODE:-off}
XDEBUG_CONFIG: ${XDEBUG_CONFIG:-''} XDEBUG_CONFIG: ${XDEBUG_CONFIG:-''}
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG:-''} PHP_IDE_CONFIG: ${PHP_IDE_CONFIG:-''}
#PHP_CS_FIXER_IGNORE_ENV: "true"
zipkin: zipkin:
image: openzipkin/zipkin-slim image: openzipkin/zipkin-slim
ports: ports: