From c144bf33c54b509162133b44100ecbdea9998edf Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Tue, 29 Oct 2024 02:09:07 -0500 Subject: [PATCH] gha: pass debug to lando --- .github/workflows/pr-php-tests.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pr-php-tests.yml b/.github/workflows/pr-php-tests.yml index 71a8b38..240f1ca 100644 --- a/.github/workflows/pr-php-tests.yml +++ b/.github/workflows/pr-php-tests.yml @@ -58,6 +58,17 @@ jobs: setup.skipCommonPlugins=true setup.plugins.@lando/php=/home/runner/work/php/php telemetry: false + - name: Setup lando debug function + run: | + lando_debug() { + if [ -n "$DEBUG" ]; then + command lando --debug "$@" + else + command lando "$@" + fi + } + export -f lando_debug + alias lando=lando_debug - name: Run Leia Tests uses: lando/run-leia-action@v2 with: