Skip to content

Commit 5b43023

Browse files
Added Laravel 10 support
1 parent 5692bfd commit 5b43023

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

.github/workflows/laravel-10.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Laravel 10"
2+
3+
on: [ push ]
4+
5+
permissions: read-all
6+
7+
jobs:
8+
laravel:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [ "8.1", "8.2" ]
15+
laravel: [ "10.0" ]
16+
17+
name: PHP ${{ matrix.php }}
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
28+
coverage: none
29+
env:
30+
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Install dependencies
33+
run: composer require laravel/framework:^${{ matrix.laravel }}
34+
35+
- name: Execute tests
36+
run: sudo vendor/bin/phpunit

.github/workflows/laravel-9.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
php: [ "8.0", "8.1" ]
14+
php: [ "8.0", "8.1", "8.2" ]
1515
laravel: [ "9.0" ]
1616

1717
name: PHP ${{ matrix.php }}

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
],
1717
"require": {
1818
"php": "^7.2 || ^8.0",
19-
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0",
20-
"illuminate/translation": "^6.0 || ^7.0 || ^8.0 || ^9.0"
19+
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
20+
"illuminate/translation": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
2121
},
2222
"require-dev": {
23-
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
23+
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0",
2424
"phpunit/phpunit": "^8.5 || ^9.0"
2525
},
2626
"minimum-stability": "stable",

0 commit comments

Comments
 (0)