Skip to content

Commit

Permalink
Fixed composer cache in github action + added PHP 8.1, 8.2, 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Apr 12, 2024
1 parent 3d2d852 commit a2a3ded
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:

strategy:
matrix:
php-version: [7.3, 7.4, 8.0]
php-version: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
os: [ubuntu-latest]
es-version: [6.8-SNAPSHOT]

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

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

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-
- name: Install dependencies
if: ${{ matrix.php-version != '8.0' }}
run: |
Expand Down

0 comments on commit a2a3ded

Please sign in to comment.