Skip to content

Commit

Permalink
Laravel 10 support (#65)
Browse files Browse the repository at this point in the history
* chore: Add composer.lock to version control

Previously, composer.lock was mistakenly added to .gitignore. This commit corrects that oversight to ensure reproducible builds and consistent dependencies across environments.

* chore: Support Laravel 10

* ci: Exclude PHP 8.0 and Laravel 10.* testing combination

Update CI matrix to exclude tests against Laravel 10.* on PHP 8.0.

* ci: Update GitHub Actions workflow for deprecated set-output

- Replace deprecated ::set-output with Environment Files.
- Update action versions to the latest stable releases.

* ci: Migrate to $GITHUB_OUTPUT for setting outputs

- Replace deprecated ::set-output with the new environment file method.
- Update workflow to retrieve outputs using steps.[step_id].outputs.

* chore: Update docs
  • Loading branch information
FarhanShares authored Oct 6, 2023
1 parent b01a85c commit 02c1023
Show file tree
Hide file tree
Showing 5 changed files with 8,412 additions and 17 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,42 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.3, 7.4, 8.0, 8.1]
laravel: [7.*, 8.*, 9.*]
php: [7.3, 7.4, 8.0, 8.1, 8.2]
laravel: [7.*, 8.*, 9.*, 10.*]
dependency-versions: [prefer-stable]
include:
- laravel: 10.*
testbench: 10.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
exclude:
- php: 7.3
laravel: 9.*
- php: 7.4
laravel: 9.*
- php: 8.0
- php: 8.2
laravel: 7.*
- php: 8.2
laravel: 8.*
- php: 8.2
laravel: 9.*

- php: 8.1
laravel: 7.*

- php: 8.0
laravel: 10.*

- php: 7.4
laravel: 9.*
- php: 7.4
laravel: 10.*

- php: 7.3
laravel: 9.*
- php: 7.3
laravel: 10.*


name: PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }} / ${{ matrix.dependency-versions }}

Expand All @@ -44,13 +60,13 @@ jobs:
coverage: none

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
id: composer_cache

- name: Cache composer dependencies
uses: actions/[email protected]
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: ${{ steps.composer_cache.outputs.COMPOSER_CACHE_DIR }}
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
.DS_Store
.phpunit.result.cache
phpunit.xml
composer.lock
yarn.lock
package.lock
npm-debug.log
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ There are a few key concepts that need to be understood before continuing:
## Requirements

- PHP v7.3 | v7.4 | v8.0 | v8.1
- Laravel v7 | v8 | v9
- Laravel v7 | v8 | v9 | v10
- Composer v1 | v2

## Installation
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
],
"require": {
"php": "^8.0|^7.3",
"illuminate/support": "^7.0|^8.0|^9.0",
"illuminate/database": "^7.0|^8.0|^9.0",
"illuminate/validation": "^7.0|^8.0|^9.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0",
"illuminate/database": "^7.0|^8.0|^9.0|^10.0",
"illuminate/validation": "^7.0|^8.0|^9.0|^10.0",
"intervention/image": "^2.5"
},
"require-dev": {
"laravel/framework": "^7.0|^8.0|^9.0",
"orchestra/testbench": "^5.0|^6.0|^7.0",
"laravel/framework": "^7.0|^8.0|^9.0|^10.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
"mockery/mockery": "^1.2.3",
"laravel/legacy-factories": "^1.3.9"
},
Expand Down
Loading

0 comments on commit 02c1023

Please sign in to comment.