@@ -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 :
28
29
id : fetch-file
29
30
uses : yoanm/gha-supported-versions-parser/github-downloader@v1
30
31
with :
31
- file-path : .github/workflows/supported-versions.json
32
+ file-path : ${{ env.SUPPORTED_VERSIONS_FILE_PATH }}
32
33
33
34
- name : Fetch PHP supported versions
34
35
id : fetch-php-versions
@@ -115,7 +116,7 @@ jobs:
115
116
path : |
116
117
${{ steps.composer-cache.outputs.dir }}
117
118
# Clear the cache if composer.json (as composer.lock is not available) has been updated
118
- key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
119
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
119
120
120
121
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ matrix.symfony-version }}
121
122
run : |
@@ -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 }}-sf${{ env.SYMFONY_VERSION }}-${{ hashFiles('composer.json') }}
208
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ env.SYMFONY_VERSION }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
208
209
209
210
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ env.SYMFONY_VERSION }}
210
211
run : |
@@ -290,7 +291,7 @@ jobs:
290
291
path : |
291
292
${{ steps.composer-cache.outputs.dir }}
292
293
# Clear the cache if composer.json (as composer.lock is not available) has been updated
293
- key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
294
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
294
295
295
296
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ matrix.symfony-version }}
296
297
run : |
0 commit comments