Skip to content

Commit 7a5911c

Browse files
committed
Update a workflow file for GitHub Actions to test on multiple platforms
1 parent 9f258ea commit 7a5911c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/php-multiplatform.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test on multiple platforms
1+
name: Test
22

33
on:
44
push:
@@ -12,15 +12,15 @@ on:
1212

1313
jobs:
1414
test:
15-
name: Test on multiple platforms
15+
name: Test
1616
runs-on: ${{ matrix.os }}
1717
env:
1818
PHP_EXTENSIONS: mbstring, json, bcmath, zip, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, exif, gd, ldap, fileinfo
1919
strategy:
2020
matrix:
2121
# https://github.com/shivammathur/setup-php?tab=readme-ov-file#cloud-osplatform-support
2222
os: [ 'ubuntu-24.04', 'windows-2022', 'macos-13' ]
23-
php-version: [ '8.3' ]
23+
php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
@@ -33,7 +33,9 @@ jobs:
3333
extensions: ${{ env.PHP_EXTENSIONS }}
3434

3535
- name: Prepare environment
36-
run: composer install
36+
run: composer update
3737

3838
- name: Run testing
39-
run: composer test
39+
run: |
40+
php -v
41+
composer test

0 commit comments

Comments
 (0)