Skip to content

Commit a2a3ded

Browse files
committed
Fixed composer cache in github action + added PHP 8.1, 8.2, 8.3
1 parent 3d2d852 commit a2a3ded

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/test.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php-version: [7.3, 7.4, 8.0]
12+
php-version: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
1313
os: [ubuntu-latest]
1414
es-version: [6.8-SNAPSHOT]
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

2020
- name: Use PHP ${{ matrix.php-version }}
2121
uses: shivammathur/setup-php@v2
@@ -30,12 +30,12 @@ jobs:
3030
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
3131

3232
- name: Cache dependencies
33-
uses: actions/cache@v2
33+
uses: actions/cache@v4
3434
with:
3535
path: ${{ steps.composercache.outputs.dir }}
36-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
37-
restore-keys: ${{ runner.os }}-composer-
38-
36+
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}
37+
restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-
38+
3939
- name: Install dependencies
4040
if: ${{ matrix.php-version != '8.0' }}
4141
run: |

0 commit comments

Comments
 (0)