|
10 | 10 | jobs: |
11 | 11 | fetch-supported-versions: |
12 | 12 | name: Fetch supported versions |
| 13 | + runs-on: ubuntu-latest |
13 | 14 | env: |
14 | 15 | VERSIONS_FILEPATH: .github/workflows/supported-versions.json |
15 | 16 | outputs: |
16 | | - php-min: ${{ steps.parse-versions.outputs.php-min-version }} |
17 | | - php-max: ${{ steps.parse-versions.outputs.php-max-version }} |
18 | | - php-next: ${{ steps.parse-versions.outputs.php-next-version }} |
19 | | - runs-on: ubuntu-latest |
| 17 | + php-min: ${{ steps.parse-php-versions.outputs.min }} |
| 18 | + php-max: ${{ steps.parse-php-versions.outputs.max }} |
| 19 | + php-next: ${{ steps.parse-php-versions.outputs.next }} |
20 | 20 | steps: |
| 21 | + |
| 22 | + # @TODO Remove the following step and uncomment the next one (only there for local action usage!) |
21 | 23 | - name: Check out supported version file |
22 | 24 | uses: actions/checkout@v5 |
| 25 | + #- name: Check out supported version file (only) |
| 26 | + # uses: actions/checkout@v5 |
| 27 | + # with: |
| 28 | + # sparse-checkout: ${{ env.VERSIONS_FILEPATH }} |
| 29 | + # sparse-checkout-cone-mode: false |
| 30 | + |
| 31 | + - name: Fetch versions |
| 32 | + id: parse-php-versions |
| 33 | + uses: ./.github/actions/supported-versions-parser |
23 | 34 | with: |
24 | | - sparse-checkout: ${{ env.VERSIONS_FILEPATH }} |
25 | | - sparse-checkout-cone-mode: false |
26 | | - - name: Parse versions |
27 | | - id: parse-versions |
28 | | - run: | |
29 | | - # Lowest PHP version to assess (e.g Lowest supported version including security support) |
30 | | - echo "php-min-version=$( jq -r '.php.min' ${{ env.VERSIONS_FILEPATH }} )" >> $GITHUB_OUTPUT |
31 | | - # Highest PHP version to assess (e.g Highest supported version) |
32 | | - echo "php-max-version=$( jq -r '.php.max' ${{ env.VERSIONS_FILEPATH }} )" >> $GITHUB_OUTPUT |
33 | | - # Next (currently not supported) PHP version to assess (e.g Current dev version) |
34 | | - echo "php-next-version=$( jq -r '.php.next' ${{ env.VERSIONS_FILEPATH }} )" >> $GITHUB_OUTPUT |
| 35 | + dependency: php |
| 36 | + path: ${{ env.VERSIONS_FILEPATH }} |
35 | 37 | tests: |
36 | 38 | name: ${{ matrix.job-name }} |
37 | 39 | needs: [fetch-supported-versions] |
|
0 commit comments