Skip to content

Commit

Permalink
[1.x] Supports PHP 8.4 (#683)
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Nov 14, 2024
1 parent ddf47e9 commit c4026af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/facade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -26,7 +26,7 @@ jobs:
coverage: none

- name: Install dependencies
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
php: [7.3, 7.4, "8.0", 8.1, 8.2, 8.3]
laravel: [8, 9, 10, 11]
stability: ["prefer-lowest", "prefer-stable"]
include:
- php: 8.4
laravel: 11
stability: "prefer-stable"
exclude:
- php: 7.3
laravel: 9
Expand All @@ -28,6 +32,8 @@ jobs:
laravel: 10
- php: 7.4
laravel: 11
- php: '8.0'
laravel: 9 # Failed security advisory
- php: '8.0'
laravel: 10
- php: '8.0'
Expand All @@ -54,7 +60,7 @@ jobs:
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} (w/ ${{ matrix.stability }})
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -66,7 +72,7 @@ jobs:
coverage: none

- name: Set Minimum PHP 8.1 Versions
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
Expand All @@ -76,7 +82,7 @@ jobs:
if: matrix.php >= 8.1 && matrix.stability == 'prefer-lowest'

- name: Set Minimum PHP 8.2 Versions
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
Expand All @@ -85,7 +91,7 @@ jobs:
if: matrix.php >= 8.2 && matrix.stability == 'prefer-lowest'

- name: Set Minimum PHP 8.2 Versions and Laravel > 11
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
Expand All @@ -94,14 +100,14 @@ jobs:
if: matrix.php >= 8.2 && matrix.stability == 'prefer-lowest' && matrix.laravel >= 11

- name: Set Laravel version
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "laravel/framework=^${{ matrix.laravel }}" --no-interaction --no-update

- name: Install dependencies
uses: nick-invision/retry@v1
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
}
},
"require": {
"php": "^7.3|~8.0.0|~8.1.0|~8.2.0|~8.3.0",
"php": "^7.3|~8.0.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0",
"ext-json": "*",
"laravel/framework": "^8.74|^9.0|^10.0|^11.0",
"symfony/console": "^5.3|^6.0|^7.0"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"orchestra/testbench": "^6.4|^7.0|^8.0|^9.0",
"orchestra/testbench": "^6.45|^7.44|^8.25|^9.3",
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": "^8.0|^9.5.8|^10.4"
},
Expand Down

0 comments on commit c4026af

Please sign in to comment.