Skip to content

Commit 9bcba3e

Browse files
authored
Run CI every month (#8)
1 parent c0a665d commit 9bcba3e

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
.gitignore export-ignore
55
.php_cs export-ignore
66
Makefile export-ignore
7+
composer-require-checker.json export-ignore
78
phpstan.neon export-ignore
89
phpunit.xml export-ignore

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
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

Lines changed: 11 additions & 4 deletions
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

@@ -66,10 +74,9 @@ jobs:
6674
- name: "Install PHP"
6775
uses: "shivammathur/setup-php@v2"
6876
with:
69-
coverage: "pcov"
77+
coverage: "none"
7078
php-version: "${{ matrix.php-version }}"
7179
ini-values: zend.assertions=1
72-
tools: composer:v1
7380

7481
- name: "Get composer cache directory"
7582
id: composercache
@@ -131,7 +138,7 @@ jobs:
131138

132139
- name: "Run tests"
133140
timeout-minutes: 3
134-
run: "vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-xml=coverage/coverage-xml --log-junit=coverage/junit.xml"
141+
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
135142

136143
- name: "Send code coverage report to Codecov.io"
137144
uses: codecov/codecov-action@v1

composer-require-checker.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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\\Util\\Debug",
7+
"PHPUnit\\Framework\\Test",
8+
"posix_isatty",
9+
"ROOT_PATH"
10+
]
11+
}

0 commit comments

Comments
 (0)