Skip to content

Commit

Permalink
add custom commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mozex committed Nov 30, 2024
1 parent 37f6c3a commit aa2f074
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/type-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit aa2f074

Please sign in to comment.