Skip to content

Commit 44bf07e

Browse files
committed
ci: add PHP 8.4 setup to fix composer install failures
1 parent 47cda05 commit 44bf07e

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/php.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v6
1919

20+
- name: Setup PHP 8.4
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: "8.4"
24+
2025
- name: Validate composer.json and composer.lock
2126
run: composer validate --strict
2227

@@ -25,15 +30,9 @@ jobs:
2530
uses: actions/cache@v5
2631
with:
2732
path: vendor
28-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
33+
key: ${{ runner.os }}-php-${{ hashFiles("**/composer.lock") }}
2934
restore-keys: |
3035
${{ runner.os }}-php-
3136
3237
- name: Install dependencies
3338
run: composer install --prefer-dist --no-progress
34-
35-
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36-
# Docs: https://getcomposer.org/doc/articles/scripts.md
37-
38-
# - name: Run test suite
39-
# run: composer run-script test

0 commit comments

Comments
 (0)