Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
.gitignore export-ignore
.php_cs export-ignore
Makefile export-ignore
composer-require-checker.json export-ignore
phpstan.neon export-ignore
phpunit.xml export-ignore
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"
commit-message:
include: "scope"
prefix: "composer"
labels:
- "dependency-update"
versioning-strategy: "widen"
15 changes: 11 additions & 4 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- "master"
schedule:
- cron: '0 3 1-7 * 1'

jobs:
composer-json-lint:
Expand All @@ -26,7 +28,7 @@ jobs:
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: composer-normalize
tools: composer-normalize, composer-require-checker, composer-unused

- name: "Get composer cache directory"
id: composercache
Expand All @@ -48,6 +50,12 @@ jobs:
- name: "Normalize composer.json"
run: "composer-normalize --dry-run"

- name: "Check composer.json explicit dependencies"
run: "composer-require-checker check --config-file=$(realpath composer-require-checker.json)"

- name: "Check composer.json unused dependencies"
run: "composer-unused"

tests:
name: "Tests"

Expand All @@ -66,10 +74,9 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: zend.assertions=1
tools: composer:v1

- name: "Get composer cache directory"
id: composercache
Expand Down Expand Up @@ -131,7 +138,7 @@ jobs:

- name: "Run tests"
timeout-minutes: 3
run: "vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-xml=coverage/coverage-xml --log-junit=coverage/junit.xml"
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"

- name: "Send code coverage report to Codecov.io"
uses: codecov/codecov-action@v1
Expand Down
11 changes: 11 additions & 0 deletions composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"symbol-whitelist" : [
"null", "true", "false",
"static", "self", "parent",
"array", "string", "int", "float", "bool", "iterable", "callable", "void", "object",
"Doctrine\\Common\\Util\\Debug",
"PHPUnit\\Framework\\Test",
"posix_isatty",
"ROOT_PATH"
]
}