Skip to content

Commit

Permalink
Laravel 9 support (#19)
Browse files Browse the repository at this point in the history
* Add Laravel 9 requirement

* Remove scrutinizer test

* Create test.yml

* Fix directory name

* Fix issue on older PHP-ver
  • Loading branch information
olssonm committed Feb 8, 2022
1 parent 7032f90 commit 1ea671c
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 45 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 0 additions & 18 deletions .scrutinizer.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -51,5 +51,6 @@
]
}
},
"minimum-stability": "stable"
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit 1ea671c

Please sign in to comment.