Skip to content

Commit

Permalink
PHP 8.2 support (#322)
Browse files Browse the repository at this point in the history
* PHP 8.2 support

* infection property

* fix php version
  • Loading branch information
danepowell authored Feb 8, 2023
1 parent d313c41 commit 628adcb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/mt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: ['7.4', '8.0', '8.1']

name: Mutation Testing Code Review Annotations ${{ matrix.php-version }}
steps:
- name: Checkout code
Expand All @@ -22,18 +18,18 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
php-version: 8.2
tools: composer:v2
extensions: pcov
coverage: pcov

- name: Install dependencies
run: |
composer install --no-progress --no-suggest --no-interaction
composer install --no-progress --no-interaction
- name: Download Infection
run: |
wget https://github.com/infection/infection/releases/download/0.21.0/infection.phar
wget https://github.com/infection/infection/releases/download/0.26.19/infection.phar
chmod +x infection.phar
- name: Run Infection for added files only
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
php-versions: ['7.4', '8.0', '8.1']
php-versions: ['7.4', '8.0', '8.1', '8.2']
name: PHP ${{ matrix.php-versions }} build and test on ${{ matrix.operating-system }}
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"license": "MIT",
"require": {
"php": "^7.4 | ^8.0.2 | ^8.1",
"php": "^7.4 | ^8.0.2 | ^8.1 | ^8.2",
"guzzlehttp/guzzle": "^7.2",
"league/oauth2-client": "^2.4",
"symfony/cache": "^5 | ^6",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
},
"logs": {
"text": "tests/logs/infection.log",
"badge": {
"branch": "master"
"stryker": {
"badge": "master"
}
},
"mutators": {
Expand Down

0 comments on commit 628adcb

Please sign in to comment.