Skip to content

Commit c05e094

Browse files
committed
chore: Update CI configuration for PHP 8.5 and add caching for Composer.
1 parent 8792d3b commit c05e094

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
permissions:
77
contents: read
88

9+
env:
10+
PHP_VERSION: '8.5'
11+
912
jobs:
1013
auto-review:
11-
name: Auto review (PHP ${{ matrix.php }})
14+
name: Auto review (PHP ${{ env.PHP_VERSION }})
1215
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
php: [ '8.3', '8.4', '8.5' ]
1616

1717
steps:
1818
- name: Checkout
@@ -21,7 +21,7 @@ jobs:
2121
- name: Configure PHP
2222
uses: shivammathur/setup-php@v2
2323
with:
24-
php-version: ${{ matrix.php }}
24+
php-version: ${{ env.PHP_VERSION }}
2525

2626
- name: Cache Composer
2727
uses: actions/cache@v4
@@ -39,20 +39,17 @@ jobs:
3939
run: composer review
4040

4141
tests:
42-
name: Tests (PHP ${{ matrix.php }})
42+
name: Tests (PHP ${{ env.PHP_VERSION }})
4343
runs-on: ubuntu-latest
44-
strategy:
45-
matrix:
46-
php: [ '8.3', '8.4', '8.5' ]
4744

4845
steps:
4946
- name: Checkout
5047
uses: actions/checkout@v6
5148

52-
- name: Use PHP ${{ matrix.php }}
49+
- name: Configure PHP
5350
uses: shivammathur/setup-php@v2
5451
with:
55-
php-version: ${{ matrix.php }}
52+
php-version: ${{ env.PHP_VERSION }}
5653

5754
- name: Cache Composer
5855
uses: actions/cache@v4

0 commit comments

Comments
 (0)