Skip to content

Commit 18f4f41

Browse files
committed
chore: Run tests on PHP 8.2
1 parent 255b93e commit 18f4f41

File tree

3 files changed

+229
-556
lines changed

3 files changed

+229
-556
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,30 @@ jobs:
1515
# https://www.php.net/supported-versions.php
1616
php-versions: ['7.3', '7.4', '8.0']
1717
# https://phpunit.de/supported-versions.html
18-
phpunit-versions: ['9.5.4']
18+
phpunit-version: ['9.5.4']
1919
experimental: [false]
2020
include:
2121
- php-versions: '7.1'
22-
phpunit-versions: '7.5.20'
22+
phpunit-version: '7.5.20'
2323
experimental: false
2424
- php-versions: '7.2'
25-
phpunit-versions: '8.5.15'
25+
phpunit-version: '8.5.15'
2626
experimental: false
2727
- php-versions: '8.1'
28-
phpunit-versions: '9.5.14'
28+
phpunit-version: '9.5.27'
29+
experimental: false
30+
- php-versions: '8.2'
31+
phpunit-version: '9.5.27'
2932
experimental: false
30-
31-
# PHPUnit's dependencies do not support PHP 8.2 yet.
32-
# - php-versions: '8.2'
33-
# phpunit-versions: '9.5.11'
34-
# experimental: true
3533
steps:
3634
- name: Checkout
37-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3836

3937
- name: Setup PHP
4038
uses: shivammathur/setup-php@v2
4139
with:
4240
php-version: ${{ matrix.php-versions }}
43-
tools: composer, phpunit:${{ matrix.phpunit-versions }}
41+
tools: composer, phpunit:${{ matrix.phpunit-version }}
4442
coverage: xdebug
4543
# Report deprecation errors.
4644
ini-values: error_reporting=E_ALL
@@ -52,9 +50,9 @@ jobs:
5250

5351
- name: Get composer cache directory
5452
id: composer-cache
55-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
53+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
5654
- name: Cache dependencies
57-
uses: actions/cache@v2
55+
uses: actions/cache@v3
5856
with:
5957
path: ${{ steps.composer-cache.outputs.dir }}
6058
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -69,20 +67,17 @@ jobs:
6967
run: phpunit --coverage-text --coverage-clover=coverage.xml
7068

7169
- name: Upload coverage data to codecov
72-
if: matrix.php-versions == '7.4'
73-
uses: codecov/codecov-action@v1
74-
75-
- name: Upload coverage data to scrutinizer
76-
if: matrix.php-versions == '7.4'
77-
run: |
78-
wget https://scrutinizer-ci.com/ocular.phar
79-
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
70+
if: matrix.php-versions == '8.1'
71+
uses: codecov/codecov-action@v3
72+
with:
73+
files: ./coverage.xml
74+
fail_ci_if_error: true
8075

8176
build-docs:
8277
runs-on: ubuntu-latest
8378
steps:
8479
- name: Checkout
85-
uses: actions/checkout@v2
80+
uses: actions/checkout@v3
8681
with:
8782
# fetch complete history so that the "last updated by" texts can be set correctly
8883
fetch-depth: 0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy