Skip to content

Commit 8f5f5db

Browse files
committed
Updating to use matrix so we can test multiple versions
1 parent 9287b99 commit 8f5f5db

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/php.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
php: [ 8.3, 8.4 ]
17+
laravel: [ 11.*, 12.* ]
18+
stability: [ prefer-stable ]
19+
postgres: [ 14, 16 ]
1320

1421
services:
1522
postgres:
16-
image: postgres:14
23+
image: postgres:${{ matrix.postgres }}
1724
env:
1825
POSTGRES_DB: forge
1926
POSTGRES_USER: forge
@@ -39,6 +46,13 @@ jobs:
3946
4047
- uses: actions/checkout@v4
4148

49+
- name: Setup PHP
50+
uses: shivammathur/setup-php@v2
51+
with:
52+
php-version: ${{ matrix.php }}
53+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
54+
coverage: pcov
55+
4256
- name: Validate composer.json and composer.lock
4357
run: composer validate --strict
4458

0 commit comments

Comments
 (0)