Skip to content

Commit

Permalink
feat!: drop PHP 8.1 support (#217)
Browse files Browse the repository at this point in the history
* feat!: drop PHP 8.1 support

* ci: normalize artifacts
  • Loading branch information
greatislander authored Oct 24, 2024
1 parent c7b9b90 commit 15c4049
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
php: [8.2, 8.3]
laravel: [10]
livewire: [2, 3]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
os:
- ubuntu-latest
php: [8.1, 8.2]
php: [8.2, 8.3]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
include:
Expand Down Expand Up @@ -69,17 +69,17 @@ jobs:
composer test
env:
DB_PORT: ${{ job.services.mysql.ports[3306] }}
if: ${{ matrix.os != 'ubuntu-latest' || matrix.php != 8.1 || matrix.stability != 'prefer-stable' }}
if: ${{ matrix.os != 'ubuntu-latest' || matrix.php != 8.2 || matrix.stability != 'prefer-stable' }}

- name: Execute tests with code coverage
run: |
composer test-coverage
env:
DB_PORT: ${{ job.services.mysql.ports[3306] }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == 8.1 && matrix.stability == 'prefer-stable' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.php == 8.2 && matrix.stability == 'prefer-stable' }}
- name: Save code coverage to artifact
uses: actions/upload-artifact@v4
if: matrix.php == 8.1
if: matrix.php == 8.2
with:
name: code-coverage
path: "coverage.xml"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Hearth is a simple starter kit for the Laravel framework. It provides a few thin

## Installation

Hearth requires PHP >= 8.1 and Laravel >= 10.
Hearth requires PHP >= 8.2 and Laravel >= 10.

You may use Composer to install Hearth into your new Laravel project:

Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"chinleung/laravel-locales": "^2.0",
"chinleung/laravel-multilingual-routes": "^4.0",
"codezero/laravel-unique-translation": "^4.0",
Expand Down Expand Up @@ -48,6 +48,9 @@
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
},
"platform": {
"php": "8.2.24"
}
},
"extra": {
Expand Down

0 comments on commit 15c4049

Please sign in to comment.