mirror of
https://github.com/Respect/Validation.git
synced 2026-03-14 14:25:45 +01:00
- Commit composer.lock. - The lock is not ignored anymore. - Changed to ramsey/composer-install action for cache.
44 lines
No EOL
1.1 KiB
YAML
44 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
|
|
|
|
- uses: "ramsey/composer-install@v3" |