Skip to content

Commit

Permalink
Added Laravel 10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Feb 10, 2023
1 parent 5692bfd commit 5b43023
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/laravel-10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Laravel 10"

on: [ push ]

permissions: read-all

jobs:
laravel:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "8.1", "8.2" ]
laravel: [ "10.0" ]

name: PHP ${{ matrix.php }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: composer require laravel/framework:^${{ matrix.laravel }}

- name: Execute tests
run: sudo vendor/bin/phpunit
2 changes: 1 addition & 1 deletion .github/workflows/laravel-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "8.0", "8.1" ]
php: [ "8.0", "8.1", "8.2" ]
laravel: [ "9.0" ]

name: PHP ${{ matrix.php }}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
],
"require": {
"php": "^7.2 || ^8.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/translation": "^6.0 || ^7.0 || ^8.0 || ^9.0"
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/translation": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"require-dev": {
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0",
"phpunit/phpunit": "^8.5 || ^9.0"
},
"minimum-stability": "stable",
Expand Down

0 comments on commit 5b43023

Please sign in to comment.