Skip to content

Commit

Permalink
Adds support for PHP 8.2 & PHP 8.3; drops support for <8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Ellis committed Jun 21, 2024
1 parent 76d01f2 commit c74229a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 17 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,30 @@ name: CI
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

run:
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-versions:
- '8.1'
- '8.2'
- '8.3'
dependencies:
- "lowest"
- "highest"
steps:
- uses: actions/checkout@v1

- name: Composer install
run: composer install --prefer-dist
- uses: actions/checkout@v2

- name: Run PHPUnit (7.4)
run: php7.4 vendor/bin/phpunit
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: intl

- name: Run PHPUnit (8.0)
run: php8.0 vendor/bin/phpunit
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: Run PHPUnit (8.1)
run: php8.1 vendor/bin/phpunit
- name: Run PHPUnit
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"require": {
"hamcrest/hamcrest-php": "^2.0",
"php": "7.3.* || 7.4.* || 8.0.* || 8.1.*",
"php": "8.1.* || 8.2.* || 8.3.*",
"ascii-soup/hamcrest-callback-matcher": "^1.1"
},
"require-dev": {
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

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

0 comments on commit c74229a

Please sign in to comment.