Skip to content

Commit

Permalink
adding php8.2 to build matrix (#896)
Browse files Browse the repository at this point in the history
* adding 8.2 to build matrix

* 8.2 experimental

* relax deptrac

* allow style check to fail if experimental

* bump checkout action version
  • Loading branch information
brettmc authored Dec 12, 2022
1 parent 616b356 commit 02c1782
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,34 @@ on:

jobs:
php:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1']
os: [ubuntu-latest]
extensions: ['ast, grpc', 'ast, grpc, protobuf-3.21.5']
experimental: [false]
include:
- php-version: 8.2
experimental: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
tools: php-cs-fixer
extensions: ${{ matrix.extensions }}
extensions: "ast, grpc, protobuf"

- name: Validate composer.json
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-${{ matrix.php-version }}-php-${{ hashFiles('**/composer.json') }}
Expand All @@ -46,6 +47,7 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- 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

- name: Check Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-otel-php-base-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: OpenTelemetry PHP base docker image creation
strategy:
matrix:
php-version: ['7.4', '8.0', '8.1']
php-version: ['7.4', '8.0', '8.1', '8.2']
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"psalm/plugin-mockery": "^0.9",
"psalm/plugin-phpunit": "^0.18",
"psalm/psalm": "^4.0",
"qossmic/deptrac-shim": "^0.24",
"qossmic/deptrac-shim": "^0 || ^1",
"rector/rector": "^0.13.7",
"symfony/http-client": "^5.2"
},
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
XDEBUG_MODE: ${XDEBUG_MODE:-off}
XDEBUG_CONFIG: ${XDEBUG_CONFIG:-''}
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG:-''}
#PHP_CS_FIXER_IGNORE_ENV: "true"
zipkin:
image: openzipkin/zipkin-slim
ports:
Expand Down

0 comments on commit 02c1782

Please sign in to comment.