Laravel 9 support (#19)

* Add Laravel 9 requirement

* Remove scrutinizer test

* Create test.yml

* Fix directory name

* Fix issue on older PHP-ver
This commit is contained in:
Marcus Olsson 2022-02-08 17:33:29 +01:00 committed by GitHub
parent 7032f90820
commit 1ea671c7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 45 deletions

45
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Laravel automated tests
on:
push:
branches: ['master', 'feature/**']
pull_request:
branches: ['master']
jobs:
php-tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: 8.1
illuminate: ^9.0
- php: 8.1
illuminate: ^8.0
- php: 8.0
illuminate: ^8.0
- php: 7.4
illuminate: ^7.0
- php: 7.3
illuminate: ^7.0
name: PHP ${{ matrix.php }} - Illuminate ${{ matrix.illuminate }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Update composer
run: composer self-update --2
- name: Install dependencies
run: composer require "illuminate/support:${{ matrix.illuminate }}" --no-interaction --no-progress --no-suggest
- name: Execute tests
run: composer test

View File

@ -1,18 +0,0 @@
filter:
excluded_paths: [tests/*]
checks:
php:
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

View File

@ -1,23 +0,0 @@
language: php
sudo: false
before_script:
- travis_retry composer self-update
- travis_retry composer require "illuminate/support:${ILLUMINATE_VERSION}"
script:
- composer test
matrix:
include:
- php: 7.3
env: ILLUMINATE_VERSION=^6.0
- php: 7.3
env: ILLUMINATE_VERSION=^7.0
- php: 7.3
env: ILLUMINATE_VERSION=^8.0
- php: 7.4
env: ILLUMINATE_VERSION=^8.0
- php: 8.0
env: ILLUMINATE_VERSION=^8.0

View File

@ -3,8 +3,7 @@
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Total downloads][ico-downloads]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Scrutinizer Score][ico-scrutinizer]][link-scrutinizer]
[![Build Status](https://img.shields.io/github/workflow/status/olssonm/laravel-zxcvbn/Laravel%20automated%20tests?style=flat-square)](https://github.com/olssonm/ampersand/actions/workflows/test.yml)
![zxcvbn](https://user-images.githubusercontent.com/907114/41193108-747d9b50-6c08-11e8-8f9c-57874f52fa9b.png)

View File

@ -21,7 +21,7 @@
],
"require": {
"php": "^7.3|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"illuminate/support": "^7.0|^8.0|^9.0",
"bjeavons/zxcvbn-php": "^1.2"
},
"require-dev": {
@ -51,5 +51,6 @@
]
}
},
"minimum-stability": "stable"
"minimum-stability": "dev",
"prefer-stable": true
}