Skip to content

Commit cb65311

Browse files
authored
Merge pull request #5 from Slamdunk/ci_schedule
Run CI every month
2 parents b1cc7ce + efc2a53 commit cb65311

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
.gitignore export-ignore
55
.php_cs export-ignore
66
Makefile export-ignore
7+
composer-require-checker.json export-ignore
78
phpunit.xml export-ignore

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "composer"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
commit-message:
9+
include: "scope"
10+
prefix: "composer"
11+
labels:
12+
- "dependency-update"
13+
versioning-strategy: "widen"

.github/workflows/integrate.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- "master"
8+
schedule:
9+
- cron: '0 3 1-7 * 1'
810

911
jobs:
1012
composer-json-lint:
@@ -26,7 +28,7 @@ jobs:
2628
with:
2729
coverage: "none"
2830
php-version: "${{ matrix.php-version }}"
29-
tools: composer-normalize
31+
tools: composer-normalize, composer-require-checker, composer-unused
3032

3133
- name: "Get composer cache directory"
3234
id: composercache
@@ -48,6 +50,12 @@ jobs:
4850
- name: "Normalize composer.json"
4951
run: "composer-normalize --dry-run"
5052

53+
- name: "Check composer.json explicit dependencies"
54+
run: "composer-require-checker check --config-file=$(realpath composer-require-checker.json)"
55+
56+
- name: "Check composer.json unused dependencies"
57+
run: "composer-unused"
58+
5159
tests:
5260
name: "Tests"
5361

composer-require-checker.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"symbol-whitelist" : [
3+
"null", "true", "false",
4+
"static", "self", "parent",
5+
"array", "string", "int", "float", "bool", "iterable", "callable", "void", "object",
6+
"Doctrine\\Common\\Collections\\Collection",
7+
"Doctrine\\Common\\Persistence\\Proxy",
8+
"ROOT_PATH"
9+
]
10+
}

0 commit comments

Comments
 (0)