Skip to content

Commit

Permalink
Update CI to run with PHP 8.4 and Symfony 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
norkunas committed Nov 30, 2024
1 parent 2382ef5 commit d9b47b2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.3
php-version: 8.4

- name: "Install Dependencies with Composer"
uses: ramsey/composer-install@v3
Expand All @@ -38,6 +38,8 @@ jobs:
php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
env:
PHP_CS_FIXER_IGNORE_ENV: 1
steps:
- name: "Checkout"
uses: actions/checkout@v4
Expand All @@ -46,7 +48,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.3
php-version: 8.4
tools: cs2pr

- name: "Install Dependencies with Composer"
Expand All @@ -60,15 +62,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.1', '8.2', '8.3']
symfony-version: ['5.4', '6.4', '7.0']
php-version: ['7.4', '8.1', '8.2', '8.3', '8.4']
symfony-version: ['5.4', '6.4', '7.0', '7.1', '7.2']
exclude:
- php-version: '7.4'
symfony-version: '6.4'
- php-version: '7.4'
symfony-version: '7.0'
- php-version: '7.4'
symfony-version: '7.1'
- php-version: '7.4'
symfony-version: '7.2'
- php-version: '8.1'
symfony-version: '7.0'
- php-version: '8.1'
symfony-version: '7.1'
- php-version: '8.1'
symfony-version: '7.2'

steps:
- name: "Checkout"
Expand All @@ -88,8 +98,8 @@ jobs:
composer-options: "--optimize-autoloader"

- name: "Run tests with PHPUnit"
# env:
# SYMFONY_DEPRECATIONS_HELPER: 'max[self]=2'
env:
SYMFONY_DEPRECATIONS_HELPER: 'ignoreFile=./tests/baseline-ignore'
run: vendor/bin/simple-phpunit

codecov:
Expand All @@ -103,10 +113,12 @@ jobs:
uses: shivammathur/setup-php@v2
with:
coverage: pcov
php-version: 8.3
php-version: 8.4

- name: "Install Dependencies with Composer"
uses: ramsey/composer-install@v3

- name: "Run tests with PHPUnit and collect coverage"
env:
SYMFONY_DEPRECATIONS_HELPER: 'ignoreFile=./tests/baseline-ignore'
run: php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude="~vendor~" vendor/bin/simple-phpunit --colors=always --coverage-text -vvv
15 changes: 15 additions & 0 deletions tests/baseline-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%Symfony\\Component\\Process\\ExecutableFinder::find\(\): Implicitly marking parameter \$default as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::__construct\(\): Implicitly marking parameter \$cwd as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::__construct\(\): Implicitly marking parameter \$env as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::fromShellCommandline\(\): Implicitly marking parameter \$cwd as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::fromShellCommandline\(\): Implicitly marking parameter \$env as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::run\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::mustRun\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::start\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::start\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::wait\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::stop\(\): Implicitly marking parameter \$signal as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Process\\Process::buildCallback\(\): Implicitly marking parameter \$callback as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Filesystem\\Filesystem::touch\(\): Implicitly marking parameter \$time as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Filesystem\\Filesystem::touch\(\): Implicitly marking parameter \$atime as nullable is deprecated, the explicit nullable type must be used instead%
%Symfony\\Component\\Filesystem\\Filesystem::mirror\(\): Implicitly marking parameter \$iterator as nullable is deprecated, the explicit nullable type must be used instead%

0 comments on commit d9b47b2

Please sign in to comment.