Skip to content

Improve compatibility with legacy SQLite versions #538

Improve compatibility with legacy SQLite versions

Improve compatibility with legacy SQLite versions #538

Workflow file for this run

name: PHPUnit Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: PHP ${{ matrix.php }} / SQLite ${{ matrix.sqlite }}
uses: ./.github/workflows/phpunit-tests-run.yml
permissions:
contents: read
secrets: inherit
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
include:
# Add specific SQLite versions for specific PHP versions here:
- php: '7.2'
sqlite: '3.27.0' # minimum version with WP_SQLITE_UNSAFE_ENABLE_UNSUPPORTED_VERSIONS
- php: '7.3'
sqlite: '3.34.1' # Debian 11 (Bullseye), common with PHP < 8.1
- php: '7.4'
sqlite: '3.37.0' # minimum supported version (STRICT table support)
- php: '8.0'
sqlite: '3.40.1' # Debian 12 (Bookworm)
- php: '8.1'
sqlite: '3.46.1' # Debian 13 (Trixie), Ubuntu >= 24.10
with:
os: ${{ matrix.os }}
php: ${{ matrix.php }}
sqlite: ${{ matrix.sqlite || 'latest' }}
phpunit-config: ${{ 'phpunit.xml.dist' }}