Skip to content

Commit 9ef91d0

Browse files
committed
PHP 8.1
1 parent 6904d41 commit 9ef91d0

File tree

4 files changed

+175
-260
lines changed

4 files changed

+175
-260
lines changed

.github/workflows/main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ jobs:
66
strategy:
77
matrix:
88
php-version:
9-
- '7.4'
10-
- '8.0'
119
- '8.1'
1210

1311
name: PHP ${{ matrix.php-version }}
@@ -50,7 +48,7 @@ jobs:
5048
- name: Setup PHP, with composer and extensions
5149
uses: shivammathur/setup-php@v2
5250
with:
53-
php-version: 7.4
51+
php-version: 8.1
5452
coverage: none
5553
tools: cs2pr
5654

@@ -76,7 +74,7 @@ jobs:
7674
- name: Setup PHP, with composer and extensions
7775
uses: shivammathur/setup-php@v2
7876
with:
79-
php-version: 7.4
77+
php-version: 8.1
8078
coverage: none
8179

8280
- name: Cache composer dependencies
@@ -97,11 +95,13 @@ jobs:
9795
steps:
9896
- name: Checkout
9997
uses: actions/checkout@v2
98+
with:
99+
fetch-depth: 2
100100

101101
- name: Setup PHP, with composer and extensions
102102
uses: shivammathur/setup-php@v2
103103
with:
104-
php-version: 7.4
104+
php-version: 8.1
105105
coverage: pcov
106106

107107
- name: Cache composer dependencies
@@ -119,8 +119,8 @@ jobs:
119119

120120
- name: Upload code coverage
121121
run: |
122-
curl -LO https://scrutinizer-ci.com/ocular.phar
123-
php ocular.phar code-coverage:upload --format=php-clover coverage-clover.xml
122+
composer global require scrutinizer/ocular
123+
~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage-clover.xml
124124
125125
release:
126126
runs-on: ubuntu-latest

.scrutinizer.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ coding_style:
1212
build:
1313
nodes:
1414
analysis:
15+
image: default-bionic
16+
environment:
17+
php: 8.1.2
1518
tests:
1619
override:
1720
- php-scrutinizer-run
1821

1922
tools:
2023
external_code_coverage:
21-
timeout: 3600
24+
timeout: 600
2225
runs: 1
2326

2427
build_failure_conditions:
25-
- 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
26-
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
28+
- 'elements.rating(<= C).new.exists' # No new classes/methods with a rating of C or worse allowed
29+
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
2730
- 'project.metric_change("scrutinizer.test_coverage", < 0)' # Code Coverage decreased from previous inspection
28-
- 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed
31+
- 'patches.label("Unused Use Statements").new.exists' # No new unused imports patches allowed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
},
2626
"require": {
27-
"php": "^7.4 || ^8.0",
27+
"php": "^8.1",
2828
"ext-json": "*",
2929
"psr/http-server-middleware": "^1.0",
3030
"webonyx/graphql-php": "^14.11"

0 commit comments

Comments
 (0)