Skip to content

Commit

Permalink
Make PHP 8.1 as base requirement.
Browse files Browse the repository at this point in the history
Signed-off-by: Raza Mehdi <[email protected]>
  • Loading branch information
srmklive committed Jun 23, 2024
1 parent 24c2a26 commit 167eb67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Laravel PayPal
name: Laravel PayPal v4
on: [push, pull_request]
jobs:
paypal:
Expand All @@ -7,10 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
include:
- php-versions: '8.0'
continue-on-error: true
php-versions: ['8.1', '8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -36,18 +33,7 @@ jobs:
env:
PHP_VERSION: ${{ matrix.php-versions }}
run: composer install --no-progress --prefer-dist --optimize-autoloader $(if [ "$PHP_VERSION" == "8.0" || "$PHP_VERSION" == "8.1" ]; then echo "--ignore-platform-reqs"; fi;)
- name: Run tests for PHP 7.2 to 8.0 with code coverage
if: matrix.php-versions == '7.2' || matrix.php-versions == '7.3' || matrix.php-versions == '7.4' || matrix.php-versions == '8.0'
env:
PHP_VERSION: ${{ matrix.php-versions }}
run: vendor/bin/phpunit $(if [ "$PHP_VERSION" == "7.2" ]; then echo "-c phpunit.xml.dist.php72"; fi;) $(if [ "$PHP_VERSION" == "7.3" ]; then echo "-c phpunit.xml.dist.php8"; fi;) $(if [ "$PHP_VERSION" == "7.4" ]; then echo "-c phpunit.xml.dist.php8"; fi;) $(if [ "$PHP_VERSION" == "8.0" ]; then echo "-c phpunit.xml.dist.php8"; fi;) --coverage-clover build/logs/clover.xml
- name: Install PestPHP
if: matrix.php-versions == '8.1' || matrix.php-versions == '8.2' || matrix.php-versions == '8.3'
env:
PHP_VERSION: ${{ matrix.php-versions }}
run: composer require pestphp/pest --dev --with-all-dependencies
- name: Run tests for PHP 8.1+ with code coverage
if: matrix.php-versions == '8.1' || matrix.php-versions == '8.2' || matrix.php-versions == '8.3'
- name: Run tests with code coverage
env:
PHP_VERSION: ${{ matrix.php-versions }}
run: vendor/bin/pest --coverage-clover build/logs/clover.xml
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM srmklive/docker-php-cli:7.4
FROM srmklive/docker-php-cli:8.1

LABEL maintainer="Raza Mehdi<[email protected]>"

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
}
},
"require": {
"php": ">=7.2|^8.0",
"php": "^8.1",
"ext-curl": "*",
"guzzlehttp/guzzle": "~7.0",
"illuminate/support": "~6.0|~7.0|~8.0|~9.0|^10.0|^11.0",
"nesbot/carbon": "~2.0|^3.0"
},
"require-dev": {
"pestphp/pest": "~2.0",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^8.0|^9.0|^10.0|^11.0",
"symfony/var-dumper": "~5.0|^6.0|^7.0"
},
"config": {
Expand Down

0 comments on commit 167eb67

Please sign in to comment.