Skip to content

Commit

Permalink
fix(meta): composer workflow now targets 8.2 & 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ivuorinen committed Aug 16, 2024
1 parent 7d8d430 commit e30e50f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/composer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: PHP Composer

on:
Expand All @@ -12,11 +13,20 @@ permissions:
jobs:
build:

runs-on: ubuntu-latest
# pre-installed php from 7.4 to 8.3
runs-on: ubuntu-20.04

strategy:
matrix:
php-versions: ['8.2', '8.3']

steps:
- uses: actions/checkout@v4

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

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

Expand All @@ -25,8 +35,9 @@ jobs:
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-versions }}-
${{ runner.os }}-php-
- name: Install dependencies
Expand Down

0 comments on commit e30e50f

Please sign in to comment.