11 contents: read # to fetch code (actions/checkout)
15 name: PHP ${{ matrix.php-versions }}
16 runs-on: ubuntu-latest
17 if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
21 php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']
28 MYSQL_ALLOW_EMPTY_PASSWORD: yes
32 image: postgres:latest
34 POSTGRES_PASSWORD: postgres
43 uses: actions/checkout@v3
46 uses: shivammathur/setup-php@v2
48 php-version: ${{ matrix.php-versions }}
49 extensions: mbstring, intl, PDO, pdo_sqlite, pdo_mysql, pdo_pgsql, bz2
50 ini-values: pcre.jit=0
52 - name: Setup problem matchers
54 echo ::add-matcher::${{ runner.tool_cache }}/php.json
55 echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json
60 composer install --no-interaction --no-progress --no-suggest --prefer-dist
61 cp mysql.conf.php.dist mysql.conf.php
62 cp pgsql.conf.php.dist pgsql.conf.php
63 cp proxy.conf.php.dist proxy.conf.php