From 01d69b0b53d2b5de0599875eb76834b78605e444 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Thu, 9 Jan 2025 13:24:11 -0800 Subject: [PATCH] ensure dependencies are installed for format and test recipes --- justfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/justfile b/justfile index fefc13802..05496a799 100644 --- a/justfile +++ b/justfile @@ -8,13 +8,13 @@ export PATH := "vendor/bin:" + env_var('PATH') _default: just --list --unsorted -# install vendored dependencies; only used locally -install: - composer install +# install vendored dependencies +install *args: + composer install {{ if is_dependency() == "true" {"--quiet"} else {""} }} {{ args }} # ⭐ run full unit test suite; needs stripe-mock [no-exit-message] -test *args: +test *args: install phpunit {{ args }} # run tests in CI; can use autoload mode (or not) @@ -23,7 +23,7 @@ ci-test autoload: ./build.php {{ autoload }} # ⭐ format all files -format *args: +format *args: install PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix -v --using-cache=no {{ args }} # for backwards compatibility; ideally removed later