Skip to content

Commit 12e604e

Browse files
author
github-ci
committed
ci: 添加 composer-require-checker 配置和工作流
1 parent 4968a4e commit 12e604e

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.github/workflows/composer-require-checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
- name: Install dependencies
3333
run: composer install --prefer-dist --no-progress
3434

35-
- name: ComposerRequireChecker
36-
uses: docker://webfactory/composer-require-checker:4.5.0
35+
- name: Run
36+
run: XDEBUG_MODE=off ./vendor/bin/composer-require-checker check composer.json

composer-require-checker.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"symbol-whitelist" : [],
3+
"php-core-extensions" : [
4+
"Core",
5+
"date",
6+
"json",
7+
"hash",
8+
"pcre",
9+
"Phar",
10+
"Reflection",
11+
"SPL",
12+
"random",
13+
"standard",
14+
"Redis",
15+
"pcntl"
16+
],
17+
"scan-files" : []
18+
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
},
2929
"require-dev": {
3030
"phpunit/phpunit": "^10.0",
31-
"phpstan/phpstan": "^2.1"
31+
"phpstan/phpstan": "^2.1",
32+
"maglnet/composer-require-checker": "^4"
3233
},
3334
"scripts": {
3435
"phpstan": "phpstan analyse src -l 1"

0 commit comments

Comments
 (0)