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:
parent
7032f90820
commit
1ea671c7fe
|
|
@ -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
|
||||
|
|
@ -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
|
||||
23
.travis.yml
23
.travis.yml
|
|
@ -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
|
||||
|
|
@ -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]
|
||||
[](https://github.com/olssonm/ampersand/actions/workflows/test.yml)
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue