Skip to content

Commit

Permalink
Add addons
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Oct 20, 2024
1 parent 4549091 commit 3bf8c36
Show file tree
Hide file tree
Showing 20 changed files with 1,674 additions and 1,420 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ cs: ## Check the code for code style issues
stan: ## Run static analysis (PHPStan)
$(DOCKER_RUN) vendor/bin/phpstan analyse src tests --level max --ansi -c ./etc/qa/phpstan.neon

psalm: ## Run static analysis (Psalm)
$(DOCKER_RUN) vendor/bin/psalm --threads=$(THREADS) --shepherd --stats --config=./etc/qa/psalm.xml

unit-testing: ## Run tests
$(DOCKER_RUN) vendor/bin/phpunit --colors=always -c ./etc/qa/phpunit.xml --coverage-text --coverage-html ./var/tests-unit-coverage-html --coverage-clover ./var/tests-unit-clover-coverage.xml
$(DOCKER_RUN) test -n "$(COVERALLS_REPO_TOKEN)" && test -n "$(COVERALLS_RUN_LOCALLY)" && test -f ./var/tests-unit-clover-coverage.xml && vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./var/tests-unit-clover-coverage-upload.json || true
Expand All @@ -55,6 +58,12 @@ unit-testing-raw: ## Run tests ####
php vendor/phpunit/phpunit/phpunit --colors=always -c ./etc/qa/phpunit.xml --coverage-text --coverage-html ./var/tests-unit-coverage-html --coverage-clover ./var/tests-unit-clover-coverage.xml
test -n "$(COVERALLS_REPO_TOKEN)" && test -n "$(COVERALLS_RUN_LOCALLY)" && test -f ./var/tests-unit-clover-coverage.xml && ./vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./var/tests-unit-clover-coverage-upload.json || true

mutation-testing: ## Run mutation testing
$(DOCKER_RUN) vendor/bin/roave-infection-static-analysis-plugin --ansi --log-verbosity=all --threads=$(THREADS) --psalm-config etc/qa/psalm.xml || (cat ./var/infection.log && false)

mutation-testing-raw: ## Run mutation testing ####
php vendor/roave/infection-static-analysis-plugin/bin/roave-infection-static-analysis-plugin --ansi --log-verbosity=all --threads=$(THREADS) --psalm-config etc/qa/psalm.xml || (cat ./var/infection.log && false)

composer-require-checker: ## Ensure we require every package used in this package directly
$(DOCKER_RUN) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=./etc/qa/composer-require-checker.json

Expand Down
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,31 @@
"type": "composer-plugin",
"require": {
"php": "^8.2",
"ext-json": "^8.2",
"composer-plugin-api": "^2.0",
"illuminate/collections": "^8.54 || ^9 || ^10",
"mammatus/app": "dev-master",
"mammatus/cron-attributes": "^1",
"mammatus/cron-attributes": "^2",
"mammatus/cron-contracts": "^1.0.1",
"mammatus/kubernetes-attributes": "dev-main",
"mammatus/kubernetes-events": "dev-main",
"mammatus/kubernetes-attributes": "^1",
"mammatus/kubernetes-contracts": "^1",
"mammatus/kubernetes-events": "^1",
"mammatus/life-cycle-events": "^2",
"psr/container": "^1.1.2",
"psr/event-dispatcher": "^1.0",
"psr/log": "^2",
"react/async": "^4.2",
"roave/better-reflection": "^6.26",
"wyrihaximus/broadcast-contracts": "^1.3",
"wyrihaximus/list-classes-in-directory": "^1.6",
"wyrihaximus/generative-composer-plugin-tooling": "^1",
"wyrihaximus/monolog-factory": "^2",
"wyrihaximus/psr-3-context-logger": "^2.0",
"wyrihaximus/react-cron": "^5",
"wyrihaximus/react-mutex-contracts": "^2.3",
"wyrihaximus/simple-twig": "^2.1",
"wyrihaximus/string-get-in": "^1.1",
"wyrihaximus/simple-twig": "^2.2.1",
"wyrihaximus/ticking-promise": "^3.1"
},
"require-dev": {
"react/promise-timer": "^1.11",
"wyrihaximus/async-test-utilities": "^8.0.1"
},
"autoload": {
Expand Down
Loading

0 comments on commit 3bf8c36

Please sign in to comment.