Skip to content

Commit 6fcc0ce

Browse files
authored
Support for Laravel 9 (#27)
1 parent 28c770a commit 6fcc0ce

File tree

4 files changed

+54
-45
lines changed

4 files changed

+54
-45
lines changed

.github/workflows/run-tests.yml

+43-38
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,46 @@ name: run-tests
33
on: [push, pull_request]
44

55
jobs:
6-
test:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: true
10-
matrix:
11-
php: [8.1, 8.0, 7.4]
12-
laravel: [8.*]
13-
dependency-version: [prefer-lowest, prefer-stable]
14-
include:
15-
- laravel: 8.*
16-
testbench: 6.*
17-
18-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
19-
20-
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v2
23-
24-
- name: Cache dependencies
25-
uses: actions/cache@v2
26-
with:
27-
path: ~/.composer/cache/files
28-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29-
30-
- name: Setup PHP
31-
uses: shivammathur/setup-php@v2
32-
with:
33-
php-version: ${{ matrix.php }}
34-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
35-
coverage: none
36-
37-
- name: Install dependencies
38-
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
41-
42-
- name: Execute tests
43-
run: vendor/bin/phpunit
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [8.1, 8.0, 7.4]
12+
laravel: [9.*, 8.*]
13+
dependency-version: [prefer-lowest, prefer-stable]
14+
exclude:
15+
- laravel: 9.*
16+
php: 7.4
17+
include:
18+
- laravel: 9.*
19+
testbench: 7.*
20+
- laravel: 8.*
21+
testbench: 6.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Cache dependencies
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.composer/cache/files
33+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
40+
coverage: none
41+
42+
- name: Install dependencies
43+
run: |
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46+
47+
- name: Execute tests
48+
run: vendor/bin/phpunit

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-paddle` will be documented in this file
44

5+
## 2.4.0 - 2022-02-04
6+
7+
- Support for Laravel 9
8+
59
## 2.3.0 - 2021-12-19
610

711
- Support for PHP 8.1

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ We proudly support the community by developing Laravel packages and giving them
1919

2020
## Installation
2121

22-
Only the master branch and version 2.0 of this package are compatible with Laravel 8.0. If you're still using an older version of Laravel (or PHP < 7.3), please use the chart below to find out which version you should use. Mind that older versions are no longer supported.
22+
Only the master branch and version 2.0 of this package are compatible with Laravel 8.0 and 9.0. If you're still using an older version of Laravel (or PHP < 7.3), please use the chart below to find out which version you should use. Mind that older versions are no longer supported.
2323

2424
| Laravel Version | Package Version |
2525
|-----------------|-----------------|
26-
| 8.0 | 2.0 |
26+
| 8.0-9.0 | 2.0 |
2727
| 6.0-7.0 | 1.0 |
2828

2929
You can install the package via composer:

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.4|^8.0|^8.1",
20+
"php": "^7.4 || ^8.0 || ^8.1",
2121
"ext-openssl": "*",
22-
"egulias/email-validator": "^2.1.10",
22+
"egulias/email-validator": "^2.1.10 || ^3.1",
2323
"guzzlehttp/guzzle": "^7.0.1",
24-
"illuminate/support": "^8.67",
25-
"illuminate/validation": "^8.67"
24+
"illuminate/support": "^8.67 || ^9.0",
25+
"illuminate/validation": "^8.67 || ^9.0"
2626
},
2727
"require-dev": {
28-
"orchestra/testbench": "^6.23",
28+
"orchestra/testbench": "^6.23 || ^7.0",
2929
"phpunit/phpunit": "^9.4"
3030
},
3131
"autoload": {

0 commit comments

Comments
 (0)