Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/php-7.2.dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/php-7.3.dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/php-7.4.dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/php-8.0.dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/php-8.1.dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/php-8.2.dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/php-8.3.dockerfile

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/php-multiplatform.yml

This file was deleted.

32 changes: 20 additions & 12 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,29 @@ on:
jobs:
test:
name: Test
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
PHP_EXTENSIONS: mbstring, json, bcmath, zip, pdo, pdo_mysql, pdo_pgsql, pdo_sqlite, exif, gd, ldap, fileinfo
strategy:
matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
# https://github.com/shivammathur/setup-php?tab=readme-ov-file#cloud-osplatform-support
os: [ 'ubuntu-22.04', 'windows-2022', 'macos-14' ]
php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Run docker-compose
shell: bash
run: |
cp .github/workflows/php-${{ matrix.php }}.dockerfile Dockerfile
docker-compose up -d
sleep 30
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP with extensions
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
extensions: ${{ env.PHP_EXTENSIONS }}

- name: Prepare environment
run: composer update

- name: Run testing
shell: bash
run: |
sleep 30
docker-compose exec -T web sh -c "cd / && php -v && composer test"
php -v
composer test