Skip to content

To be deleted (old version of "Fetching rows as native arrays for better static analysis") #926

To be deleted (old version of "Fetching rows as native arrays for better static analysis")

To be deleted (old version of "Fetching rows as native arrays for better static analysis") #926

Workflow file for this run

name: Tests
on: [push, pull_request]
env:
# pdo_sqlsrv is deliberately unpinned: no single release covers the whole matrix
# (5.12 = PHP 8.1-8.3, 5.13 = PHP 8.3-8.5), so let setup-php pick a compatible one
php-extensions: mbstring, intl, pdo_sqlsrv
php-tools: "composer:v2, pecl"
jobs:
tests:
runs-on: ubuntu-24.04
strategy:
matrix:
php: ['8.3', '8.4', '8.5']
fail-fast: false
name: PHP ${{ matrix.php }} tests
steps:
- uses: actions/checkout@v6
- name: Start database containers
run: docker compose up -d --wait --quiet-pull
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.php-extensions }}
tools: ${{ env.php-tools }}
coverage: none
- name: Create databases.ini
run: cp ./tests/databases.docker.ini ./tests/Database/databases.ini
- run: composer install --no-progress --prefer-dist
- run: composer tester
- if: failure()
uses: actions/upload-artifact@v4
with:
name: output-${{ matrix.php }}
path: tests/**/output
lowest_dependencies:
name: Lowest Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
- name: Create databases.ini
run: cp ./tests/databases.sqlite.ini ./tests/Database/databases.ini
- run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
- run: composer tester