Skip to content

Commit 02c1782

Browse files
authored
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
1 parent 616b356 commit 02c1782

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

Diff for: .github/workflows/php.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,34 @@ on:
88

99
jobs:
1010
php:
11-
runs-on: ${{ matrix.os }}
11+
runs-on: ubuntu-latest
1212
continue-on-error: ${{ matrix.experimental }}
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
php-version: ['7.4', '8.0', '8.1']
17-
os: [ubuntu-latest]
18-
extensions: ['ast, grpc', 'ast, grpc, protobuf-3.21.5']
1917
experimental: [false]
18+
include:
19+
- php-version: 8.2
20+
experimental: true
2021

2122
steps:
22-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2324

2425
- name: Setup PHP
2526
uses: shivammathur/setup-php@v2
2627
with:
2728
php-version: ${{ matrix.php-version }}
2829
coverage: xdebug
2930
tools: php-cs-fixer
30-
extensions: ${{ matrix.extensions }}
31+
extensions: "ast, grpc, protobuf"
3132

3233
- name: Validate composer.json
3334
run: composer validate
3435

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

4849
- name: Check Style
50+
continue-on-error: ${{ matrix.experimental }}
4951
run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --stop-on-violation --using-cache=no -vvv
5052

5153
- name: Check Dependencies

Diff for: .github/workflows/publish-otel-php-base-docker-image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: OpenTelemetry PHP base docker image creation
99
strategy:
1010
matrix:
11-
php-version: ['7.4', '8.0', '8.1']
11+
php-version: ['7.4', '8.0', '8.1', '8.2']
1212
runs-on: ubuntu-latest
1313
permissions:
1414
packages: write

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"psalm/plugin-mockery": "^0.9",
105105
"psalm/plugin-phpunit": "^0.18",
106106
"psalm/psalm": "^4.0",
107-
"qossmic/deptrac-shim": "^0.24",
107+
"qossmic/deptrac-shim": "^0 || ^1",
108108
"rector/rector": "^0.13.7",
109109
"symfony/http-client": "^5.2"
110110
},

Diff for: docker-compose.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
XDEBUG_MODE: ${XDEBUG_MODE:-off}
1010
XDEBUG_CONFIG: ${XDEBUG_CONFIG:-''}
1111
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG:-''}
12+
#PHP_CS_FIXER_IGNORE_ENV: "true"
1213
zipkin:
1314
image: openzipkin/zipkin-slim
1415
ports:

0 commit comments

Comments
 (0)