Skip to content

Commit 763b646

Browse files
authored
Laravel 9 support (#12)
1 parent 0ff77fb commit 763b646

File tree

4 files changed

+55
-41
lines changed

4 files changed

+55
-41
lines changed

.github/workflows/run-tests.yml

Lines changed: 43 additions & 38 deletions
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+
include:
15+
- laravel: 9.*
16+
testbench: 7.*
17+
- laravel: 8.*
18+
testbench: 6.*
19+
exclude:
20+
- laravel: 9.*
21+
php: 7.4
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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-verify-new-email` will be documented in this file
44

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

711
- Support for PHP 8.1

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ If you want to know more about the background of this package, please read [the
2020

2121
We proudly support the community by developing Laravel packages and giving them away for free. Keeping track of issues and pull requests takes time, but we're happy to help! If this package saves you time or if you're relying on it professionally, please consider [supporting the maintenance and development](https://github.com/sponsors/pascalbaljet).
2222

23+
## Requirements
24+
25+
* PHP 7.4 or higher
26+
* Laravel 8 or higher
27+
2328
## Installation
2429

2530
You can install the package via composer:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.4 || ^8.0",
20-
"illuminate/support": "^8.67"
19+
"php": "^7.4 || ^8.0 || ^8.1",
20+
"illuminate/support": "^8.67 || ^9.0"
2121
},
2222
"require-dev": {
23-
"orchestra/testbench": "^6.23",
23+
"orchestra/testbench": "^6.23 || ^7.0",
2424
"phpunit/phpunit": "^9.4"
2525
},
2626
"autoload": {

0 commit comments

Comments
 (0)