@@ -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
@@ -114,7 +115,7 @@ jobs:
114
115
path : |
115
116
${{ steps.composer-cache.outputs.dir }}
116
117
# Clear the cache if composer.json (as composer.lock is not available) has been updated
117
- key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
118
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
118
119
119
120
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ matrix.symfony-version }}
120
121
run : |
@@ -202,7 +203,7 @@ jobs:
202
203
path : |
203
204
${{ steps.composer-cache.outputs.dir }}
204
205
# Clear the cache if composer.json (as composer.lock is not available) has been updated
205
- key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ env.SYMFONY_VERSION }}-${{ hashFiles('composer.json') }}
206
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ env.SYMFONY_VERSION }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
206
207
207
208
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ env.SYMFONY_VERSION }}
208
209
run : |
@@ -287,7 +288,7 @@ jobs:
287
288
path : |
288
289
${{ steps.composer-cache.outputs.dir }}
289
290
# Clear the cache if composer.json (as composer.lock is not available) has been updated
290
- key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json') }}
291
+ key : tests-php${{ steps.setup-php.outputs.php-version }}-sf${{ matrix.symfony-version }}-${{ hashFiles('composer.json', env.SUPPORTED_VERSIONS_FILE_PATH ) }}
291
292
292
293
- name : Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ matrix.symfony-version }}
293
294
run : |
0 commit comments