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: