Skip to content

Commit

Permalink
Dump php version to 8.3 (#88)
Browse files Browse the repository at this point in the history
* dump php version to 8.3
  • Loading branch information
pvsaintpe committed May 2, 2024
1 parent f077880 commit 28d9f4e
Show file tree
Hide file tree
Showing 28 changed files with 1,086 additions and 1,165 deletions.
76 changes: 16 additions & 60 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ on:

env:
COVERAGE: '1'
php_extensions: 'apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip'
php_extensions: 'apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip, xdebug'
key: cache-v0.1
DB_USER: 'postgres'
DB_NAME: 'testing'
DB_NAME: 'postgres'
DB_PASSWORD: 'postgres'
DB_HOST: '127.0.0.1'

Expand All @@ -36,7 +36,7 @@ jobs:
operating_system:
- ubuntu-latest
php_versions:
- '7.4'
- '8.3'
fail-fast: false
env:
PHP_CS_FIXER_FUTURE_MODE: '0'
Expand Down Expand Up @@ -78,67 +78,22 @@ jobs:
strategy:
fail-fast: false
matrix:
coverage: [false]
exclude_group: ['WithoutSchema,forPHP8']
coverage: [true]
experimental: [false]
operating_system: [ubuntu-latest]
postgres: ['10', '11', '12']
php_versions: ['7.3', '7.4']
postgres: ['10', '11', '12', '13', '14']
php_versions: ['8.3']
include:
- operating_system: 'ubuntu-latest'
php_versions: '7.3'
postgres: '9.6'
experimental: false
coverage: true
exclude_group: WithoutSchema,forPHP8
- operating_system: 'ubuntu-latest'
php_versions: '7.3'
postgres: '13'
experimental: false
coverage: false
exclude_group: WithoutSchema,forPHP8
- operating_system: 'ubuntu-latest'
php_versions: '7.4'
postgres: '13'
experimental: false
coverage: false
exclude_group: WithoutSchema,forPHP8
- operating_system: 'ubuntu-latest'
php_versions: '8.0'
postgres: '10'
experimental: false
coverage: false
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.0'
postgres: '11'
experimental: false
coverage: false
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.0'
postgres: '12'
experimental: false
coverage: true
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.0'
postgres: '13'
coverage: false
experimental: false
exclude_group: WithoutSchema,forPHP7
- operating_system: 'ubuntu-latest'
php_versions: '8.1'
postgres: '14'
php_versions: '8.3'
postgres: '15'
coverage: false
experimental: false
exclude_group: WithoutSchema,forPHP7
experimental: true
- operating_system: 'ubuntu-latest'
php_versions: '8.2'
postgres: '15'
php_versions: '8.4'
postgres: '16'
coverage: false
experimental: false
exclude_group: WithoutSchema,forPHP7
experimental: true
runs-on: '${{ matrix.operating_system }}'
services:
postgres:
Expand Down Expand Up @@ -181,8 +136,8 @@ jobs:
with:
php-version: ${{ matrix.php_versions }}
extensions: ${{ env.php_extensions }}
ini-values: 'pcov.directory=src, date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off'
coverage: pcov
ini-values: 'date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off, xdebug.mode="develop,coverage"'
coverage: xdebug
tools: 'phpunit'
- name: 'Install PHP dependencies with Composer'
continue-on-error: ${{ matrix.experimental }}
Expand All @@ -191,16 +146,17 @@ jobs:
- name: 'Run Unit Tests with PHPUnit'
continue-on-error: ${{ matrix.experimental }}
run: |
php -v
sed -e "s/\${USERNAME}/${{ env.DB_USER }}/" \
-e "s/\${PASSWORD}/${{ env.DB_PASSWORD }}/" \
-e "s/\${DATABASE}/${{ env.DB_NAME }}/" \
-e "s/\${HOST}/${{ env.DB_HOST }}/" \
phpunit.xml.dist > phpunit.xml
./vendor/bin/phpunit \
--stderr \
--exclude-group ${{ matrix.exclude_group }} \
--coverage-clover build/logs/clover.xml \
--coverage-text
cat build/logs/clover.xml
working-directory: './'
- name: Upload coverage results to Coveralls
if: ${{ !matrix.experimental && matrix.coverage }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
.ecs_cache
phpunit.xml
.phpunit.result.cache
/build
.phpunit.cache
composer.lock
/build
14 changes: 14 additions & 0 deletions .run/Functional.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Functional" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
<CommandLine parameters="-d memory_limit=-1">
<PhpTestInterpreterSettings>
<option name="interpreterName" value="PHP 8.3" />
</PhpTestInterpreterSettings>
<envs>
<env name="XDEBUG.MODE" value="coverage" />
</envs>
</CommandLine>
<TestRunner configuration_file="$PROJECT_DIR$/phpunit.xml" directory="$PROJECT_DIR$/tests/Functional" use_alternative_configuration_file="true" />
<method v="2" />
</configuration>
</component>
14 changes: 14 additions & 0 deletions .run/Tests .run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Tests " type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
<CommandLine parameters="-d memory_limit=-1">
<PhpTestInterpreterSettings>
<option name="interpreterName" value="PHP 8.3" />
</PhpTestInterpreterSettings>
<envs>
<env name="XDEBUG.MODE" value="coverage" />
</envs>
</CommandLine>
<TestRunner configuration_file="$PROJECT_DIR$/phpunit.xml" directory="$PROJECT_DIR$/tests" use_alternative_configuration_file="true" />
<method v="2" />
</configuration>
</component>
14 changes: 14 additions & 0 deletions .run/Unit.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Unit" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
<CommandLine parameters="-d memory_limit=-1">
<PhpTestInterpreterSettings>
<option name="interpreterName" value="PHP 8.3" />
</PhpTestInterpreterSettings>
<envs>
<env name="XDEBUG.MODE" value="coverage" />
</envs>
</CommandLine>
<TestRunner configuration_file="$PROJECT_DIR$/phpunit.xml" directory="$PROJECT_DIR$/tests/Unit" use_alternative_configuration_file="true" />
<method v="2" />
</configuration>
</component>
Loading

0 comments on commit 28d9f4e

Please sign in to comment.