From aa2f074f9dbab9a74aec2347a540f9fa6383b9cf Mon Sep 17 00:00:00 2001 From: Mozex Date: Sat, 30 Nov 2024 19:13:33 +0300 Subject: [PATCH] add custom commands --- .github/workflows/code-analysis.yml | 9 +++++++++ .github/workflows/type-coverage.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/code-analysis.yml b/.github/workflows/code-analysis.yml index 0fae40a..7c17380 100644 --- a/.github/workflows/code-analysis.yml +++ b/.github/workflows/code-analysis.yml @@ -17,6 +17,11 @@ on: required: false type: string default: 'phpstan.neon.dist' + custom_commands: + description: 'Custom commands to run.' + required: false + type: string + default: '' permissions: contents: write @@ -37,6 +42,10 @@ jobs: php-version: ${{ inputs.php_version }} coverage: none + - name: Custom Commands + if: "inputs.custom_commands != ''" + run: ${{ inputs.custom_commands }} + - name: Install Composer Dependencies uses: ramsey/composer-install@v3 env: diff --git a/.github/workflows/type-coverage.yml b/.github/workflows/type-coverage.yml index 5ef5870..2334dc8 100644 --- a/.github/workflows/type-coverage.yml +++ b/.github/workflows/type-coverage.yml @@ -22,6 +22,11 @@ on: required: false type: number default: 100 + custom_commands: + description: 'Custom commands to run.' + required: false + type: string + default: '' permissions: contents: write @@ -42,6 +47,10 @@ jobs: php-version: ${{ inputs.php_version }} coverage: none + - name: Custom Commands + if: "inputs.custom_commands != ''" + run: ${{ inputs.custom_commands }} + - name: Install Composer Dependencies uses: ramsey/composer-install@v3 with: