Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit 65ffc90

Browse files
Provisional PHP 8.0 and Laravel 8 support
1 parent 3527de1 commit 65ffc90

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

.github/workflows/tests.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,25 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: ['7.1', '7.2', '7.3', '7.4']
15-
laravel: ['5.5', '5.6', '5.7', '5.8', '6', '7']
14+
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
15+
laravel: ['5.5', '5.6', '5.7', '5.8', '6', '7', '8']
1616
exclude:
1717
- php: '7.1'
1818
laravel: '6'
1919
- php: '7.1'
2020
laravel: '7'
21+
- php: '7.1'
22+
laravel: '8'
23+
- php: '7.2'
24+
laravel: '8'
25+
- php: '8.0'
26+
laravel: '5.5'
27+
- php: '8.0'
28+
laravel: '5.6'
29+
- php: '8.0'
30+
laravel: '5.7'
31+
- php: '8.0'
32+
laravel: '5.8'
2133

2234
steps:
2335
- name: Checkout Code
@@ -81,12 +93,29 @@ jobs:
8193
command: composer require "laravel/framework:7.*" "phpunit/phpunit:^8.5|^9.0" --no-update --no-interaction
8294
if: "matrix.laravel == '7'"
8395

84-
- name: Install Dependencies
96+
- name: Select Laravel 8
97+
uses: nick-invision/retry@v1
98+
with:
99+
timeout_minutes: 5
100+
max_attempts: 5
101+
command: composer require "laravel/framework:8.*" "phpunit/phpunit:^9.3" --no-update --no-interaction
102+
if: "matrix.laravel == '8'"
103+
104+
- name: Install PHP 7 Dependencies
85105
uses: nick-invision/retry@v1
86106
with:
87107
timeout_minutes: 5
88108
max_attempts: 5
89109
command: composer update --no-interaction --no-progress
110+
if: "matrix.php < 8"
111+
112+
- name: Install PHP 8 Dependencies
113+
uses: nick-invision/retry@v1
114+
with:
115+
timeout_minutes: 5
116+
max_attempts: 5
117+
command: composer update --no-interaction --no-progress --ignore-platform-req=php
118+
if: "matrix.php >= 8"
90119

91120
- name: Execute PHPUnit
92121
run: vendor/bin/phpunit

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
## Installation
1313

14-
Alt Three Validator is a validation wrapper for Laravel. This version requires [PHP](https://php.net) 7.1-7.4, and supports Laravel 5.5-7. Simply require the package using [Composer](https://getcomposer.org):
14+
Alt Three Validator is a validation wrapper for Laravel. This version requires [PHP](https://php.net) 7.1-8.0, and supports Laravel 5.5-8. Simply require the package using [Composer](https://getcomposer.org):
1515

1616
```bash
1717
$ composer require alt-three/validator:^4.5

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.1.3",
14-
"illuminate/contracts": "^5.5 || ^6.0 || ^7.0",
15-
"illuminate/support": "^5.5 || ^6.0 || ^7.0",
13+
"php": "^7.1.3 || ^8.0",
14+
"illuminate/contracts": "^5.5 || ^6.0 || ^7.0 || ^8.0",
15+
"illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0",
1616
"psr/log": "^1.1"
1717
},
1818
"require-dev": {

0 commit comments

Comments
 (0)