Skip to content

Commit

Permalink
Update to php8.1 symfony 6.4 (#103)
Browse files Browse the repository at this point in the history
* ISSUE-337: use local

* ISSUE-337: test

* ISSUE-337: fix write issue

* ISSUE-337: update version

* ISSUE-337: fix tests

* ISSUE-337: update phpstan

* ISSUE-337: changelog + test

---------

Co-authored-by: Tatevik <[email protected]>
  • Loading branch information
TatevikGr and tatevikg1 authored Jan 15, 2025
1 parent 8c6eb3f commit 18b4c24
Show file tree
Hide file tree
Showing 8 changed files with 6,805 additions and 4,715 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0']
dependencies: ['current', 'latest', 'oldest']
php-versions: ['8.1']
dependencies: ['current', 'oldest']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -50,36 +50,23 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Install the latest dependencies
run: composer update --with-dependencies --prefer-stable --prefer-dist
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
if: ${{ matrix.dependencies }} == "current"
- name: Install the lowest dependencies
run: composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
if: ${{ matrix.dependencies }} == "latest"
- name: Install current dependencies from composer.lock
run: composer install
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
if: ${{ matrix.dependencies }} == "oldest"
- name: Set up database schema
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -u${{ env.DB_USERNAME }} -p${{ env.DB_PASSWORD }} ${{ env.DB_DATABASE }} < vendor/phplist/core/resources/Database/Schema.sql
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
- name: Validating composer.json
run: composer validate --no-check-all --no-check-lock --strict;
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
- name: Linting all php files
run: find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l;
- name: Run integration tests with phpunit
run: vendor/bin/phpunit tests/Integration/
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
- name: Running the system tests
run: vendor/bin/phpunit tests/Integration/;
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
run: vendor/bin/phpunit tests/System/;
- name: Running static analysis
run: vendor/bin/phpstan analyse -l 5 src/ tests/;
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
- name: Running PHPMD
run: vendor/bin/phpmd src/ text vendor/phplist/core/config/PHPMD/rules.xml;
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
- name: Running PHP_CodeSniffer
run: vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/;
continue-on-error: ${{matrix.php-versions == '8.0' }} # [temp-php8]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
/vendor/
.DS_Store
.vagrant
.phpunit.result.cache
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Fixed
- Security update for symfony/symfony and symfony/dependency-injection (#86)


## 5.0.0-alpha1

### Changed
- php version 8.1

## 4.0.0-alpha2

### Added
Expand Down
47 changes: 14 additions & 33 deletions composer.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,49 +22,29 @@
"role": "Former developer"
}
],
"repositories": [
{
"type": "path",
"url": "../core",
"options": {
"symlink": true
}
},
{
"type": "path",
"url": "../rest-api",
"options": {
"symlink": true
}
},
{
"type": "path",
"url": "../web-frontend",
"options": {
"symlink": true
}
}
],
"support": {
"issues": "https://github.com/phpList/base-distribution/issues",
"forum": "https://discuss.phplist.org/",
"source": "https://github.com/phpList/base-distribution"
},
"require": {
"php": "^7.2|^8.0",
"phplist/core": "@dev",
"phplist/rest-api": "@dev",
"phplist/web-frontend": "@dev"
"php": "^8.1",
"phplist/core": "dev-ISSUE-337",
"phplist/rest-api": "dev-ISSUE-337",
"phplist/web-frontend": "dev-ISSUE-337",
"doctrine/orm": "^3.3"
},
"require-dev": {
"phpunit/phpunit": "8.5.14 | ^9.5.2",
"guzzlehttp/guzzle": "6.5.5 |^7.2.0",
"phpunit/phpunit": "^9.5.2",
"guzzlehttp/guzzle": "^7.2.0",
"squizlabs/php_codesniffer": "^3.5.8",
"phpstan/phpstan": "^0.12.57",
"phpstan/phpstan": "^1.10",
"nette/caching": "^3.1.0",
"nikic/php-parser": "^4.10.4",
"phpmd/phpmd": "^2.6.0",
"roave/security-advisories": "dev-master"
"roave/security-advisories": "dev-master",
"symfony/process": "^6.4",
"symfony/framework-bundle": "^6.4"
},
"autoload": {
"psr-4": {
Expand All @@ -89,7 +69,8 @@
"PhpList\\Core\\Composer\\ScriptHandler::createBundleConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::createRoutesConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::createParametersConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::clearAllCaches"
"php bin/console cache:clear",
"php bin/console cache:warmup"
],
"post-install-cmd": [
"@create-directories",
Expand All @@ -106,7 +87,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "4.0.x-dev"
"dev-ISSUE-337": "5.0.x-dev"
},
"symfony-app-dir": "bin",
"symfony-bin-dir": "bin",
Expand Down
Loading

0 comments on commit 18b4c24

Please sign in to comment.