Skip to content

Commit 54d1fe5

Browse files
authored
Merge pull request #1 from overtrue/copilot/remove-composer-git-hooks
Remove brainmaestro/composer-git-hooks and update PHP minimum to 8.4
2 parents 62e8edc + 184e5d7 commit 54d1fe5

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- name: Setup PHP environment
1515
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: 8.4
1618
- name: Install dependencies
1719
run: composer install
1820
- name: PHPCSFixer check
1921
run: composer check-style
2022
phpunit:
2123
strategy:
2224
matrix:
23-
php_version: [8.0, 8.1, 8.2]
25+
php_version: [8.4]
2426
runs-on: ubuntu-latest
2527
steps:
2628
- uses: actions/checkout@v2

composer.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
}
1010
],
1111
"require": {
12+
"php": "^8.4",
1213
"laravel/framework": "^12.0",
1314
"phpstan/phpstan": "^2.0"
1415
},
@@ -28,39 +29,17 @@
2829
"orchestra/testbench": "^10.0",
2930
"vimeo/psalm": "^6.0",
3031
"jetbrains/phpstorm-attributes": "^1.0",
31-
"brainmaestro/composer-git-hooks": "^3.0.0",
3232
"laravel/pint": "^1.24"
3333
},
3434
"extra": {
3535
"laravel": {
3636
"providers": [
3737
"\\Overtrue\\LaravelPackage\\PackageServiceProvider"
3838
]
39-
},
40-
"hooks": {
41-
"pre-commit": [
42-
"composer check-style",
43-
"composer phpstan",
44-
"composer test"
45-
],
46-
"pre-push": [
47-
"composer check-style"
48-
]
4939
}
5040
},
5141
"scripts": {
52-
"post-update-cmd": [
53-
"cghooks remove",
54-
"cghooks add --ignore-lock",
55-
"cghooks update"
56-
],
5742
"post-merge": "composer install",
58-
"post-install-cmd": [
59-
"cghooks remove",
60-
"cghooks add --ignore-lock",
61-
"cghooks update"
62-
],
63-
"cghooks": "vendor/bin/cghooks",
6443
"check-style": "vendor/bin/pint --test",
6544
"fix-style": "vendor/bin/pint",
6645
"test": "phpunit --colors",

0 commit comments

Comments
 (0)