respect-validation/.github/actions/setup-action/action.yml
Alexandre Gomes Gaigalas b69beb1db7 Refactor CI Workflows
- Added a composite action for common setup tasks.
 - Shorter names that fit better GitHub runner displays.
 - Changed ci-perf to only run if src or tests change.
 - Removed redundant step names when they're obvious.
2026-01-28 17:31:37 +00:00

45 lines
No EOL
1.1 KiB
YAML

name: 'Setup'
description: 'Sets up the environment for Respect\Validation workflows.'
inputs:
php-version:
description: 'The PHP version to install.'
required: false
default: '8.5'
coverage:
description: 'PHP Coverage mode.'
required: false
default: 'none'
extensions:
description: 'Comma-separated list of PHP extensions to install.'
required: false
default: ''
python-version:
description: 'The Python version to install.'
required: false
python-deps:
description: 'Space-separated list of Python packages to install.'
required: false
default: ''
runs:
using: 'composite'
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php-version }}
coverage: ${{ inputs.coverage }}
extensions: ${{ inputs.extensions }}
- if: ${{ inputs.python-version != '' }}
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
- if: ${{ inputs.python-deps != '' }}
run: pip install ${{ inputs.python-deps }}
shell: bash
- run: composer install --prefer-dist
shell: bash