Skip to content

Commit

Permalink
Merge pull request #34 from emgiezet/feature/php8.3-support
Browse files Browse the repository at this point in the history
feat(php-version) - support of php 8.2 and 8.3 with gh actions update
  • Loading branch information
emgiezet authored Jun 25, 2024
2 parents 3874503 + b99be4a commit f9a4815
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,30 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
php-versions: [ '8.1', '8.2', '8.3' ]
phpunit-versions: [ 'latest' ]
include:
- operating-system: 'ubuntu-latest'
php-versions: '8.0'
phpunit-versions: 9
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}
- uses: actions/checkout@v3

- name: Check PHP Version
run: php -v
- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
Expand All @@ -26,7 +43,6 @@ jobs:
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"issues": "https://github.com/emgiezet/errbitPHP/issues"
},
"require": {
"php": "^8.0||^8.1",
"php": "^8.0||8.1||8.2||^8.3",
"guzzlehttp/guzzle": "^7.5.0",
"ext-simplexml": "*"
},
Expand Down

0 comments on commit f9a4815

Please sign in to comment.