Skip to content

Commit 3ac3a2e

Browse files
committed
Cache - supported-versions.json hash
1 parent d4ce319 commit 3ac3a2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/reusable-CI-workflow.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99
env:
1010
COMPOSER_PREFER_STABLE: '1'
1111
TEST_OUTPUT_STYLE: pretty
12+
SUPPORTED_VERSIONS_FILE_PATH: .github/workflows/supported-versions.json
1213

1314
jobs:
1415
fetch-supported-versions:
@@ -28,7 +29,7 @@ jobs:
2829
id: fetch-file
2930
uses: yoanm/gha-supported-versions-parser/github-downloader@v1
3031
with:
31-
file-path: .github/workflows/supported-versions.json
32+
file-path: ${{ env.SUPPORTED_VERSIONS_FILE_PATH }}
3233

3334
- name: Fetch PHP supported versions
3435
id: fetch-php-versions
@@ -115,7 +116,7 @@ jobs:
115116
path: |
116117
${{ steps.composer-cache.outputs.dir }}
117118
# 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) }}
119120

120121
- name: Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ matrix.symfony-version }}
121122
run: |
@@ -204,7 +205,7 @@ jobs:
204205
path: |
205206
${{ steps.composer-cache.outputs.dir }}
206207
# 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) }}
208209

209210
- name: Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ env.SYMFONY_VERSION }}
210211
run: |
@@ -290,7 +291,7 @@ jobs:
290291
path: |
291292
${{ steps.composer-cache.outputs.dir }}
292293
# 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) }}
294295

295296
- name: Build with PHP ${{ steps.setup-php.outputs.php-version }} & Symfony ${{ matrix.symfony-version }}
296297
run: |

0 commit comments

Comments
 (0)