Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Rector PHP

on:
workflow_call:
inputs:
php-version:
description: 'PHP version to run Rector with. When empty, setup-php default (latest stable) is used.'
required: false
type: string
secrets:
SATIS_NETWORK_KEY:
required: false
Expand All @@ -20,6 +25,7 @@ jobs:

- uses: ibexa/gh-workflows/actions/composer-install@main
with:
php-version: ${{ inputs.php-version }}
gh-client-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
gh-client-secret: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
satis-network-key: ${{ secrets.SATIS_NETWORK_KEY }}
Expand Down
8 changes: 7 additions & 1 deletion actions/composer-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ inputs:
satis-network-token:
description: 'Satis Network Token'
required: false
php-version:
description: >-
PHP version to set up (passed to setup-php). When empty, falls back to the calling job's
`matrix.php` for backwards compatibility. Jobs without a PHP matrix should set it explicitly,
otherwise setup-php installs its default (latest stable) PHP.
required: false
php-extensions:
description: 'Comma-separated list of PHP extensions to install'
required: false
Expand Down Expand Up @@ -48,7 +54,7 @@ runs:
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
id: setup_php
with:
php-version: ${{ matrix.php }}
php-version: ${{ inputs.php-version != '' && inputs.php-version || matrix.php }}
coverage: ${{ inputs.coverage }}
extensions: ${{ inputs.php-extensions }}
tools: cs2pr
Expand Down