diff --git a/.github/workflows/bc-break.yaml b/.github/workflows/bc-break.yaml index d07fc8b7..b5bcbbe2 100644 --- a/.github/workflows/bc-break.yaml +++ b/.github/workflows/bc-break.yaml @@ -1,7 +1,12 @@ --- name: Roave -on: workflow_call +on: + workflow_call: + inputs: + LAST_VERSION: + type: string + required: true jobs: roave_bc_check: @@ -11,6 +16,10 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ inputs.LAST_VERSION }} - name: Composer install run: composer require --dev roave/backward-compatibility-check - name: Roave BC Check diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 9c6a3be1..ccffb298 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -10,6 +10,8 @@ concurrency: jobs: bc-break: uses: ./.github/workflows/bc-break.yaml + with: + LAST_VERSION: '8.2' test: uses: ./.github/workflows/test.yaml diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index b00d6182..d19105f7 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -13,6 +13,8 @@ concurrency: jobs: bc-break: uses: ./.github/workflows/bc-break.yaml + with: + LAST_VERSION: '8.2' test: uses: ./.github/workflows/test.yaml