Skip to content

Commit

Permalink
Prepare for laravel 9 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki committed Jan 22, 2022
1 parent 26c763e commit 84233d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/phpunit.yml
Expand Up @@ -12,10 +12,15 @@ jobs:

strategy:
matrix:
php: [ 8.0, 7.4 ]
laravel: [ ^8.79 ]
php: [ 7.4, 8.0, 8.1 ]
laravel: [ ^8.79, ^9.0 ]
dependency-version: [ stable, lowest ]

exclude:
- php: 7.4
laravel: ^9.0
- laravel: ^9.0
dependency-version: lowest

name: "${{ matrix.php }} / ${{ matrix.laravel }} (${{ matrix.dependency-version }})"

steps:
Expand Down
20 changes: 8 additions & 12 deletions composer.json
Expand Up @@ -12,15 +12,14 @@
],
"license": "MIT",
"require": {
"illuminate/support": "^8.0",
"illuminate/support": "^8.0|^9.0",
"ext-json": "*",
"jdorn/sql-formatter": "^1.2"
},
"require-dev": {
"orchestra/testbench": ">=6.21.1",
"orchestra/testbench": "^6.21.1|^7.0",
"friendsofphp/php-cs-fixer": "^3.0",
"mockery/mockery": "^1.3.2",
"brainmaestro/composer-git-hooks": "^2.8",
"phpunit/phpunit": "^9.5"
},
"autoload": {
Expand All @@ -36,15 +35,10 @@
"Glhd\\LaravelDumper\\Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"scripts": {
"post-autoload-dump": [
"[ -d .git ] && vendor/bin/cghooks update || echo 'No git repository to update hooks'"
],
"write-diffs": "WRITE_DIFFS=1 vendor/bin/phpunit"
},
"hooks": {
"pre-commit": "[ -f vendor/bin/php-cs-fixer ] && ./bin/pre-commit.sh"
"write-diffs": "WRITE_DIFFS=1 vendor/bin/phpunit",
"fix-style": "vendor/bin/php-cs-fixer fix",
"check-style": "vendor/bin/php-cs-fixer fix --diff --dry-run"
},
"extra": {
"laravel": {
Expand All @@ -55,5 +49,7 @@
"LaravelDumper": "Glhd\\LaravelDumper\\Facades\\LaravelDumper"
}
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit 84233d8

Please sign in to comment.