Skip to content

Commit

Permalink
chore: php 8 required
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 18, 2024
1 parent ad7a43e commit fa43b42
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Tests

on:
push:
branches: [ master ]
pull_request:
push:
branches: [master]
pull_request:

jobs:
phpunit:
strategy:
matrix:
php_version: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug
- name: Install dependencies
run: composer install
- name: PHPUnit check
run: ./vendor/bin/phpunit --coverage-text
phpunit:
strategy:
matrix:
php_version: [8.0, 8.1, 8.2, 8.3]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: xdebug
- name: Install dependencies
run: composer install
- name: PHPUnit check
run: ./vendor/bin/phpunit --coverage-text
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"type": "library",
"require": {
"guzzlehttp/guzzle": "^6.2 || ^7.0",
"php": ">=5.6",
"php": ">=8.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^5.7 || ^7.5 || ^8.5.19 || ^9.5.8",
"mockery/mockery": "~1.3.3 || ^1.4.2",
"phpunit/phpunit": "^9.5.8",
"mockery/mockery": "^1.4.2",
"jetbrains/phpstorm-attributes": "^1.0",
"friendsofphp/php-cs-fixer": "^3.54"
},
Expand Down

0 comments on commit fa43b42

Please sign in to comment.