Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Monorepo] Require PHP 8.2 #1424

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/php_ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: PHP-CI

on: [ push, pull_request ]
on: [push, pull_request]

jobs:
coding_standards:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.1' ]
php: ['8.2']
actions:
- { name: composer, run: make check-composer }
- { name: monorepo, run: make check-monorepo }
- { name: security, run: make check-security }
- { name: ecs, run: make check-ecs, cache: ecs }
- { name: rector, run: make check-rector, cache: rector }
- { name: phpstan, run: make check-phpstan, cache: phpstan }
- {name: composer, run: make check-composer}
- {name: monorepo, run: make check-monorepo}
- {name: security, run: make check-security}
- {name: ecs, run: make check-ecs, cache: ecs}
- {name: rector, run: make check-rector, cache: rector}
- {name: phpstan, run: make check-phpstan, cache: phpstan}

name: ${{ matrix.actions.name }} (${{ matrix.php }})

Expand Down
41 changes: 14 additions & 27 deletions .github/workflows/split_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,30 @@ jobs:
PHP_EXTENSIONS: 'pdo_sqlite, openswoole, pkcs11'
PHP_EXTENSIONS_CACHE_KEY: cache-extensions-pdo_sqlite-openswoole-pkcs11
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: 'Setup cache environment'
- name: 'Setup cache environment'
id: cache-extensions
uses: shivammathur/cache-extensions@v1
with:
php-version: '${{ matrix.php }}'
extensions: '${{ env.PHP_EXTENSIONS }}'
key: '${{ env.PHP_EXTENSIONS_CACHE_KEY }}'
-
name: 'Cache extensions'
- name: 'Cache extensions'
uses: actions/cache@v4
with:
path: '${{ steps.cache-extensions.outputs.dir }}'
key: '${{ steps.cache-extensions.outputs.key }}'
restore-keys: '${{ steps.cache-extensions.outputs.key }}'
-
name: 'Setup PHP 8.1'
- name: 'Setup PHP 8.2'
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
coverage: none
extensions: '${{ env.PHP_EXTENSIONS }}'
-
name: 'Install Composer dependencies'
- name: 'Install Composer dependencies'
uses: ramsey/composer-install@v3
-
id: output_data
- id: output_data
run: 'echo "matrix=$(bin/monorepo export-packages)" >> $GITHUB_OUTPUT'
outputs:
matrix: '${{ steps.output_data.outputs.matrix }}'
Expand All @@ -57,30 +51,23 @@ jobs:
DIR: 'packages/${{ matrix.mapping.dir }}'
TAG: '${{ matrix.tag }}'
steps:
-
uses: actions/checkout@v4
-
run: 'git fetch --prune --unshallow'
-
name: 'Remove Git Extra Header'
- uses: actions/checkout@v4
- run: 'git fetch --prune --unshallow'
- name: 'Remove Git Extra Header'
run: 'git config -l | grep ''http\..*\.extraheader'' | cut -d= -f1 | xargs -L1 git config --unset-all'
-
name: 'Resolve current branch'
- name: 'Resolve current branch'
id: branch_name
run: 'echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT'
-
name: 'Add Repo Remote'
- name: 'Add Repo Remote'
run: 'git remote add split-remote https://natepage:${{ secrets.MONOREPO_GITHUB_TOKEN }}@github.com/eonx-com/${{ matrix.mapping.repo }}.git'
-
name: 'Split packages/${{ matrix.mapping.dir }}'
- name: 'Split packages/${{ matrix.mapping.dir }}'
env:
BRANCH: '${{ steps.branch_name.outputs.branch }}'
run: |
git checkout -b "local-$BRANCH-checkout" "$BRANCH"
git subtree split --prefix="packages/${{ matrix.mapping.dir }}" --branch="local-$BRANCH" "$BRANCH"
git push --force split-remote local-$BRANCH:$BRANCH
-
if: "contains(github.event.head_commit.message, '[Release]')"
- if: "contains(github.event.head_commit.message, '[Release]')"
name: 'Release eonx-com/${{ matrix.mapping.repo }}:${{ matrix.tag }}'
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/split_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2']
php: ['8.2']
package: ${{ fromJson(needs.provide_packages_json.outputs.matrix) }}

name: ${{ matrix.package.dir }} (${{ matrix.php }})
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"packages/EasyTest/bin/easy-test"
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-bcmath": "*",
"ext-openssl": "*",
"ext-simplexml": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyActivity/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"doctrine/dbal": "^3.0",
"doctrine/orm": "^2.14",
"eonx-com/easy-doctrine": "^5.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyApiPlatform/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"api-platform/core": "^3.3",
"doctrine/dbal": "^3.0",
"doctrine/orm": "^2.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyApiToken/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-openssl": "*",
"eonx-com/easy-utils": "^5.12",
"nette/utils": "^3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyAsync/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"doctrine/dbal": "^3.0",
"doctrine/orm": "^2.14",
"doctrine/persistence": "^3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyBankFiles/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-ctype": "*",
"ext-dom": "*",
"ext-libxml": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyBatch/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"doctrine/dbal": "^3.0",
"eonx-com/easy-encryption": "^5.12",
"eonx-com/easy-event-dispatcher": "^5.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyBugsnag/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"bugsnag/bugsnag": "^3.29",
"eonx-com/easy-utils": "^5.12",
"guzzlehttp/guzzle": "^7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyDecision/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-utils": "^5.12",
"psr/cache": "^3.0",
"symfony/expression-language": "^6.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyDoctrine/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-event-dispatcher": "^5.12",
"eonx-com/easy-utils": "^5.12",
"myclabs/deep-copy": "^1.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyEncryption/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-utils": "^5.12",
"paragonie/halite": "^5.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyErrorHandler/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-logging": "^5.12",
"eonx-com/easy-utils": "^5.12",
"nesbot/carbon": "^2.67",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyEventDispatcher/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1"
"php": "^8.2"
},
"require-dev": {
"laravel/lumen-framework": "^9.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyHttpClient/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-event-dispatcher": "^5.12",
"eonx-com/easy-utils": "^5.12",
"nesbot/carbon": "^2.67"
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyLock/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"symfony/lock": "^6.4"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyLogging/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-utils": "^5.12",
"monolog/monolog": "^2.9"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyNotification/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"aws/aws-sdk-php": "^3.269",
"eonx-com/easy-utils": "^5.12",
"nette/utils": "^3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyPagination/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-utils": "^5.12",
"spatie/url": "^2.2",
"symfony/string": "^6.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyPipeline/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1"
"php": "^8.2"
},
"require-dev": {
"laravel/lumen-framework": "^9.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyRandom/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"symfony/string": "^6.4",
"symfony/uid": "^6.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyRepository/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1"
"php": "^8.2"
},
"require-dev": {
"doctrine/orm": "^2.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyRequestId/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-random": "^5.12",
"eonx-com/easy-utils": "^5.12"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/EasySchedule/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"dragonmantank/cron-expression": "^3.3",
"eonx-com/easy-event-dispatcher": "^5.12",
"eonx-com/easy-lock": "^5.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasySecurity/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "symfony-bundle",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-api-token": "^5.12",
"eonx-com/easy-utils": "^5.12",
"nette/utils": "^3.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/EasySwoole/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-utils": "^5.12",
"nesbot/carbon": "^2.67",
"openswoole/core": "^22.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyTemplatingBlock/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-utils": "^5.12"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyTest/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-simplexml": "*",
"doctrine/collections": "^2.0",
"eonx-com/easy-utils": "^5.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyUtils/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1"
"php": "^8.2"
},
"require-dev": {
"eonx-com/easy-test": "^5.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyWebhook/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"eonx-com/easy-event-dispatcher": "^5.12",
"eonx-com/easy-lock": "^5.12",
"eonx-com/easy-pagination": "^5.12",
Expand Down
Loading