@@ -9,6 +9,7 @@ permissions:
9
9
env :
10
10
COMPOSER_PREFER_STABLE : ' 1'
11
11
TEST_OUTPUT_STYLE : pretty
12
+ SUPPORTED_VERSIONS_FILE_PATH : .github/workflows/supported-versions.json
12
13
13
14
jobs :
14
15
fetch-supported-versions :
25
26
id : fetch-file
26
27
uses : yoanm/gha-supported-versions-parser/github-downloader@v1
27
28
with :
28
- file-path : .github/workflows/supported-versions.json
29
+ file-path : ${{ env.SUPPORTED_VERSIONS_FILE_PATH }}
29
30
30
31
- name : Fetch PHP supported versions
31
32
id : fetch-php-versions
83
84
path : |
84
85
${{ steps.composer-cache.outputs.dir }}
85
86
# Clear the cache if composer.json (as composer.lock is not available) has been updated
86
- key : tests-php${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('composer.json') }}
87
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
87
88
88
89
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }}
89
90
run : make build
@@ -157,7 +158,7 @@ jobs:
157
158
path : |
158
159
${{ steps.composer-cache.outputs.dir }}
159
160
# Clear the cache if composer.json (as composer.lock is not available) has been updated
160
- key : tests-php${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('composer.json') }}
161
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
161
162
162
163
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }}
163
164
run : make build
@@ -204,7 +205,7 @@ jobs:
204
205
path : |
205
206
${{ steps.composer-cache.outputs.dir }}
206
207
# Clear the cache if composer.json (as composer.lock is not available) has been updated
207
- key : tests-php${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('composer.json') }}
208
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
208
209
209
210
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }}
210
211
run : make build
0 commit comments