Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 68df679

Browse files
Update CI pipline and test on PHP version 8.1 (#47)
* Test on php 8.1 * use shivammathur/setup-php@v2 * use shivammathur/setup-php@v2 * Update codeclimate-action to 3.0.0 * Convert deprecations to exceptions * Change error_reporting to E_ALL * Allow softcreatr/jsonpath 0.8
1 parent 8fb8564 commit 68df679

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

‎.github/workflows/php.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,26 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
php: ['7.2', '7.3', '7.4']
15+
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
1616
phpunit: ['8.0', '9.0']
1717
composer-arg: ['']
18-
include:
19-
- php: '8.0'
20-
phpunit: '9.0'
21-
composer-arg: 'ignore-platform-req=php'
2218
exclude:
2319
- php: '8.0'
2420
phpunit: '8.0'
2521
- php: '7.2'
2622
phpunit: '9.0'
2723
runs-on: ubuntu-latest
28-
continue-on-error: ${{ matrix.php == '8.0' }}
2924
name: PHP ${{ matrix.php }}, PHPUnit ${{ matrix.phpunit }}
3025

3126
steps:
3227
- uses: actions/checkout@v1
3328

3429
- name: Setup PHP
35-
uses: shivammathur/setup-php@v1
30+
uses: shivammathur/setup-php@v2
3631
with:
3732
php-version: ${{ matrix.php }}
3833
extensions: mbstring, intl, json
34+
ini-values: error_reporting=E_ALL
3935
coverage: pcov
4036
tools: composer:v2
4137
- name: Validate composer.json and composer.lock

‎.github/workflows/php_coverage.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212
- uses: actions/checkout@v1
1313

1414
- name: Setup PHP
15-
uses: shivammathur/setup-php@v1
15+
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: 7.4
17+
php-version: 8.0
1818
extensions: mbstring, intl, json
1919
coverage: pcov
2020

2121
- name: Install dependencies
2222
run: composer install --prefer-dist --no-progress --no-suggest
2323

2424
- name: Test & publish code coverage
25-
uses: paambaati/codeclimate-action@v2.3.0
25+
uses: paambaati/codeclimate-action@v3.0.0
2626
env:
2727
CC_TEST_REPORTER_ID: ${{ secrets.codeClimateReporterID }}
2828
with:

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"require": {
1212
"php": "^7.2 || ^8.0",
13-
"softcreatr/jsonpath": "^0.7.2",
13+
"softcreatr/jsonpath": "^0.7.2 || ^0.8",
1414
"justinrainbow/json-schema": "^5.0"
1515
},
1616
"conflict": {

‎phpunit.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
9+
convertDeprecationsToExceptions="true"
910
timeoutForSmallTests="1"
1011
timeoutForMediumTests="10"
1112
timeoutForLargeTests="60">

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /