Skip to content

Commit

Permalink
Add support for Laravel 9 (#12)
Browse files Browse the repository at this point in the history
* Add support for Laravel 9
* Add author information
* Update github workflow
  • Loading branch information
bensherred committed Feb 13, 2022
1 parent e9a8633 commit 9cfbb18
Show file tree
Hide file tree
Showing 3 changed files with 705 additions and 589 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,36 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, 8.0, 8.1]
laravel: [^6.0, ^7.0, ^8.0, ^9.0]
exclude:
- php: 7.3
laravel: ^9.0
- php: 7.4
laravel: ^9.0

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, redis, zip
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: |
composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Run PHPCS tests
run: vendor/bin/phpcs src tests/Unit --standard=PSR12
Expand Down
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@
"email": "shawnczek@truckersmp.com",
"homepage": "https://github.com/shawnczek",
"role": "Developer"
},
{
"name": "Ben Sherred",
"email": "ratcho@truckersmp.com",
"homepage": "https://github.com/bensherred",
"role": "Web Developer"
}
],
"require": {
"php": "^7.3|^8.0",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.5|^7.0",
"illuminate/contracts": "^6.0|^7.0|^8.0",
"illuminate/http": "^6.0|^7.0|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"illuminate/contracts": "^6.0|^7.0|^8.0|^9.0",
"illuminate/http": "^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
"laravel/socialite": "^4.4|^5.0"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 9cfbb18

Please sign in to comment.