Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit fb4767d

Browse files
committed
Sync some configuration
1 parent 8488799 commit fb4767d

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Continuous Integration
22
on:
33
push:
44
pull_request:
5-
schedule:
6-
- cron: '0 0 * * 0'
75
jobs:
86
composer-install:
97
strategy:
@@ -34,7 +32,7 @@ jobs:
3432
matrix:
3533
php: [7.4]
3634
composer: [lowest, current, highest]
37-
qa: [lint, cs, stan, psalm, unit, infection, composer-require-checker, composer-unused]
35+
qa: [lint, cs, stan, psalm, unit-ci, infection, composer-require-checker, composer-unused]
3836
needs: composer-install
3937
runs-on: ubuntu-latest
4038
container:

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ psalm:
3232
unit:
3333
$(DOCKER_RUN) vendor/bin/phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml
3434

35+
unit-ci: unit
36+
if [ -f ./build/logs/clover.xml ]; then wget https://scrutinizer-ci.com/ocular.phar && sleep 3 && php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi
37+
3538
infection:
3639
$(DOCKER_RUN) vendor/bin/infection --ansi --min-msi=100 --min-covered-msi=100 --threads=$(nproc)
3740

3841
composer-require-checker:
39-
$(DOCKER_RUN) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv
42+
$(DOCKER_RUN) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=composer-require-checker.json
4043

4144
composer-unused:
4245
$(DOCKER_RUN) composer unused --ansi

composer-require-checker.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"symbol-whitelist" : [
3+
"null", "true", "false",
4+
"static", "self", "parent",
5+
"array", "string", "int", "float", "bool", "iterable", "callable", "void", "object"
6+
],
7+
"php-core-extensions" : [
8+
"Core",
9+
"date",
10+
"pcre",
11+
"Phar",
12+
"Reflection",
13+
"SPL",
14+
"standard"
15+
],
16+
"scan-files" : []
17+
}

0 commit comments

Comments
 (0)