From 65e40d14f3a9fdddc18597922f37a50c8c3ec9d5 Mon Sep 17 00:00:00 2001 From: Rick Lam Date: Thu, 28 May 2026 18:55:20 +0100 Subject: [PATCH] Makefile: pass phpcs.xml standard explicitly, expand test-matrix to 8.0-8.5 - lint/lint-fix pass --standard=./phpcs.xml so local lint matches CI. - test-matrix runs PHP 7.4 + 8.0, 8.1, 8.2, 8.3, 8.4, 8.5. Mirrors graze/parallel-process#37. Co-Authored-By: Claude Opus 4.8 (1M context) --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 50cceeb..70548e7 100644 --- a/Makefile +++ b/Makefile @@ -42,10 +42,10 @@ test: ## Run the unit and integration testsuites. test: lint test-unit lint: ## Run phpcs against the code. - ${DOCKER_RUN} vendor/bin/phpcs -p --warning-severity=0 src/ tests/ + ${DOCKER_RUN} vendor/bin/phpcs --standard=./phpcs.xml -p --warning-severity=0 src/ tests/ lint-fix: ## Run phpcsf and fix possible lint errors. - ${DOCKER_RUN} vendor/bin/phpcbf -p src/ tests/ + ${DOCKER_RUN} vendor/bin/phpcbf --standard=./phpcs.xml -p src/ tests/ test-unit: ## Run the unit testsuite. ${DOCKER_RUN} vendor/bin/phpunit --testsuite unit @@ -63,6 +63,12 @@ test-matrix-lowest: ## Test all version, with the lowest version test-matrix: ## Run the unit tests against multiple targets. ${MAKE} PHP_VER="7.4" build-update test + ${MAKE} PHP_VER="8.0" build-update test + ${MAKE} PHP_VER="8.1" build-update test + ${MAKE} PHP_VER="8.2" build-update test + ${MAKE} PHP_VER="8.3" build-update test + ${MAKE} PHP_VER="8.4" build-update test + ${MAKE} PHP_VER="8.5" build-update test test-coverage: ## Run all tests and output coverage to the console. ${DOCKER_RUN} phpdbg7 -qrr vendor/bin/phpunit --coverage-text