Skip to content

Commit

Permalink
Update CI to test under different PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbolli committed Nov 18, 2024
1 parent 05c2419 commit fc001a5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
php-version: [ '8.1', '8.2', '8.3', '8.4' ]

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Validate composer.json and composer.lock
run: composer validate --strict

Expand All @@ -22,9 +30,9 @@ jobs:
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-php-${{ matrix.php-version }}-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
Expand Down

0 comments on commit fc001a5

Please sign in to comment.