Skip to content

Commit

Permalink
feat: support Laravel 9 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan authored Feb 14, 2022
1 parent 622a856 commit d387d0a
Show file tree
Hide file tree
Showing 3 changed files with 955 additions and 1,135 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,32 @@ on:
jobs:
run:
runs-on: ubuntu-latest

env:
COMPOSER_NO_INTERACTION: 1

strategy:
matrix:
php: [8.0, 8.1]
laravel: [8.*, 9.*]

name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Check out
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: mbstring

- name: Install dependencies
uses: ramsey/composer-install@v1
with:
composer-options: --prefer-dist
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-update --no-progress
composer update --prefer-dist --no-progress
- name: Run checks
run: |
Expand Down
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"require": {
"php": "^8.0",
"eve/uuid": "^1.0",
"barryvdh/laravel-dompdf": "^0.9.0",
"barryvdh/laravel-dompdf": "^1.0.0",
"pdfcrowd/pdfcrowd": "^5.2",
"illuminate/support": "^8.0",
"illuminate/http": "^8.0",
"illuminate/log": "^8.0"
"illuminate/support": "^8.0|^9.0",
"illuminate/http": "^8.0|^9.0",
"illuminate/log": "^8.0|^9.0"
},
"require-dev": {
"orchestra/testbench": "^6.23",
"orchestra/testbench": "^6|^7.0",
"eve/coding-standard": "^1.1"
},
"autoload": {
Expand All @@ -42,5 +42,10 @@
"test": "phpunit tests",
"cs": "phpcs --standard=ruleset.xml",
"cs:fix": "phpcbf --standard=ruleset.xml"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit d387d0a

Please sign in to comment.