From 4c4788aa6e691a02ebbe875697141e0d18719499 Mon Sep 17 00:00:00 2001 From: Jamie Schouten Date: Tue, 3 Jun 2025 11:54:54 +0200 Subject: [PATCH] Add args for commands --- .gitea/workflows/quality.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/quality.yml b/.gitea/workflows/quality.yml index 4ced826..cfcf445 100644 --- a/.gitea/workflows/quality.yml +++ b/.gitea/workflows/quality.yml @@ -17,6 +17,18 @@ on: required: false type: string default: '--verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --ignore-platform-reqs --no-scripts' + composer-audit-args: + required: false + type: string + default: '--abandoned fail' + phpstan-args: + required: false + type: string + default: '--memory-limit=2G' + phpcs-args: + required: false + type: string + default: '--diff --dry-run' environment-path: required: false type: string @@ -55,10 +67,10 @@ jobs: fi - name: Run PHPStan - run: ./vendor/bin/phpstan analyse --memory-limit=2G + run: ./vendor/bin/phpstan analyse ${{ inputs.phpstan-args }} - name: Run php cs fixer - run: ./vendor/bin/php-cs-fixer fix --diff --dry-run + run: ./vendor/bin/php-cs-fixer fix ${{ inputs.phpcs-args }} - name: Run audit - run: composer audit + run: composer audit ${{ inputs.composer-audit-args }} -- 2.47.2