diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58f2df44a9..605741a3ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,9 +43,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /tmp/composer key: ${{ runner.os }}-composer-${{ matrix.swoole.version }}-${{ hashFiles('/composer.json') }} @@ -125,9 +125,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /tmp/composer key: ${{ runner.os }}-composer-${{ matrix.swoole.version }}-${{ hashFiles('/composer.json') }} @@ -196,7 +196,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Services shell: bash run: | @@ -216,17 +216,23 @@ jobs: id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ matrix.swoole-cli }}-${{ hashFiles('/composer.json') }} - name: Prepare run: | + echo "::group::Composer install" composer update --prefer-dist --no-progress + echo "::endgroup::" + echo "::group::Kafka prepare" .github/prepare-kafka.sh + echo "::endgroup::" + echo "::group::Table Init" docker exec mysql mysql -uroot -p -e "ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';flush privileges;" tests/db/install-db.sh docker exec postgres psql -d db_imi_test -U root -f /imi/.github/pgsql.sql + echo "::endgroup::" echo "test_prepared=1" >> $GITHUB_ENV - name: Test @@ -293,7 +299,7 @@ jobs: ROADRUNNER_DOCKER_VERSION: ${{ matrix.roadrunner }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup MySQL uses: shogo82148/actions-setup-mysql@v1 with: @@ -334,15 +340,21 @@ jobs: id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ env.php-versions }}-${{ hashFiles('/composer.json') }} - name: Prepare run: | + echo "::group::Env prepare" mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS db_imi_test;' + echo "::endgroup::" + echo "::group::Composer install" composer update --prefer-dist --no-progress + echo "::endgroup::" + echo "::group::Table Init" tests/db/install-db.sh + echo "::endgroup::" - name: Install RoadRunner run: | @@ -414,7 +426,7 @@ jobs: ROADRUNNER_DOCKER_VERSION: ${{ matrix.roadrunner }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup MySQL uses: shogo82148/actions-setup-mysql@v1 @@ -441,9 +453,15 @@ jobs: - name: Prepare run: | + Write-Output "::group::Env prepare" mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS db_imi_test;' + Write-Output "::endgroup::" + Write-Output "::group::Composer install" composer update --prefer-dist --no-progress + Write-Output "::endgroup::" + Write-Output "::group::Table Init" php src\Cli\bin\imi-cli generate/table --app-namespace "Imi\Test\Component" + Write-Output "::endgroup::" - name: Install RoadRunner run: | diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 692c502cb7..6c2b2a12e3 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -121,7 +121,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install libs run: sudo apt update && sudo apt install -y libevent-dev libcurl4-openssl-dev libc-ares-dev libpq-dev postgresql-client - name: Setup PHP @@ -179,7 +179,7 @@ jobs: needs: test steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/daily-test.yml b/.github/workflows/daily-test.yml index ad15165447..f805a2f9ad 100644 --- a/.github/workflows/daily-test.yml +++ b/.github/workflows/daily-test.yml @@ -28,9 +28,9 @@ jobs: COMPOSER_ENV: --ignore-platform-reqs steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /tmp/composer key: ${{ runner.os }}-composer-${{ matrix.swoole.version }}-${{ hashFiles('/composer.json') }} diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index f120bca30c..a7505d07a8 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 6a712ec9ec..0e4795762c 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -24,15 +24,21 @@ jobs: ENV_SERVICE: swoole-only steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | + echo "::group::Env prepare" docker-compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} + echo "::endgroup::" + echo "::group::Env info" docker exec ${ENV_SERVICE} php -v docker exec ${ENV_SERVICE} composer -V + echo "::endgroup::" + echo "::group::Composer install" docker exec ${ENV_SERVICE} composer update --no-interaction --prefer-dist --no-progress docker exec ${ENV_SERVICE} bash -c "cd split-repository && composer install --no-interaction --prefer-dist --no-progress" + echo "::endgroup::" - name: Coding Standards Tests run: docker exec ${ENV_SERVICE} ./vendor/bin/php-cs-fixer fix --dry-run --diff -vvv diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 07f31b8e4b..3d82f29e89 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -28,17 +28,23 @@ jobs: ENV_SERVICE: swoole-only steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | + echo "::group::Env prepare" docker-compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} + echo "::endgroup::" + echo "::group::Env info" docker exec ${ENV_SERVICE} php -v docker exec ${ENV_SERVICE} php -m docker exec ${ENV_SERVICE} php --ri swoole docker exec ${ENV_SERVICE} composer -V + echo "::endgroup::" + echo "::group::Composer install" docker exec ${ENV_SERVICE} composer update --no-interaction --prefer-dist --no-progress docker exec ${ENV_SERVICE} bash -c "cd split-repository && composer install --no-interaction --prefer-dist --no-progress" + echo "::endgroup::" echo "test_prepared=1" >> $GITHUB_ENV - name: Analyse core diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index c1ccff2517..688b34b57a 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -28,17 +28,23 @@ jobs: ENV_SERVICE: swoole-only steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | + echo "::group::Env prepare" docker-compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} + echo "::endgroup::" + echo "::group::Env info" docker exec ${ENV_SERVICE} php -v docker exec ${ENV_SERVICE} php -m docker exec ${ENV_SERVICE} php --ri swoole docker exec ${ENV_SERVICE} composer -V + echo "::endgroup::" + echo "::group::Composer install" docker exec ${ENV_SERVICE} composer update --no-interaction --prefer-dist --no-progress docker exec ${ENV_SERVICE} bash -c "cd split-repository && composer install --no-interaction --prefer-dist --no-progress" + echo "::endgroup::" echo "test_prepared=1" >> $GITHUB_ENV - name: Analyse core diff --git a/.github/workflows/split-repository.yml b/.github/workflows/split-repository.yml index 65e62cef9b..ddeb7de456 100644 --- a/.github/workflows/split-repository.yml +++ b/.github/workflows/split-repository.yml @@ -16,7 +16,7 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} steps: - uses: ahmadnassri/action-workflow-queue@v1 - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/src/Components/amqp/composer.json b/src/Components/amqp/composer.json index 3cab49ed37..32442fc534 100644 --- a/src/Components/amqp/composer.json +++ b/src/Components/amqp/composer.json @@ -8,8 +8,6 @@ "php-amqplib/php-amqplib": "^3.5" }, "require-dev": { - "yurunsoft/ide-helper": "~1.0", - "swoole/ide-helper": "~5.0" }, "autoload": { "psr-4": { @@ -36,11 +34,6 @@ "post-update-cmd": "Imi\\AMQP\\Dev\\Dev::postUpdate" }, "extra": { - "ide-helper": { - "list": [ - "redis" - ] - } }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/src/Components/apidoc/composer.json b/src/Components/apidoc/composer.json index ed614e4d85..36aceb0de0 100644 --- a/src/Components/apidoc/composer.json +++ b/src/Components/apidoc/composer.json @@ -8,8 +8,6 @@ "doctrine/annotations": "^1.7" }, "require-dev": { - "yurunsoft/ide-helper": "~1.0", - "swoole/ide-helper": "~5.0" }, "autoload": { "psr-4": { @@ -28,11 +26,6 @@ }, "scripts": {}, "extra": { - "ide-helper": { - "list": [ - "redis" - ] - } }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/src/Components/kafka/composer.json b/src/Components/kafka/composer.json index 14cd970760..4780a43b94 100644 --- a/src/Components/kafka/composer.json +++ b/src/Components/kafka/composer.json @@ -8,8 +8,6 @@ "longlang/phpkafka": "^1.1" }, "require-dev": { - "yurunsoft/ide-helper": "~1.0", - "swoole/ide-helper": "~5.0" }, "autoload": { "psr-4": { @@ -36,11 +34,6 @@ "post-update-cmd": "Imi\\Kafka\\Dev\\Dev::postUpdate" }, "extra": { - "ide-helper": { - "list": [ - "redis" - ] - } }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/src/Components/mqtt/composer.json b/src/Components/mqtt/composer.json index 78d421f95b..183a107bca 100644 --- a/src/Components/mqtt/composer.json +++ b/src/Components/mqtt/composer.json @@ -7,8 +7,6 @@ "binsoul/net-mqtt": "^0.8.0" }, "require-dev": { - "yurunsoft/ide-helper": "~1.0", - "swoole/ide-helper": "~5.0" }, "autoload": { "psr-4": { @@ -34,11 +32,6 @@ "post-update-cmd": "Imi\\MQTT\\Dev\\Dev::postUpdate" }, "extra": { - "ide-helper": { - "list": [ - "redis" - ] - } }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/src/Components/pgsql/composer.json b/src/Components/pgsql/composer.json index 29bab24e73..204ea6f7d0 100644 --- a/src/Components/pgsql/composer.json +++ b/src/Components/pgsql/composer.json @@ -5,7 +5,6 @@ "description": "imi 框架配套的 pgsql 组件", "require": {}, "require-dev": { - "swoole/ide-helper": "~5.0" }, "autoload": { "psr-4": { diff --git a/src/Components/queue/composer.json b/src/Components/queue/composer.json index 1912216dfe..265eeb422a 100644 --- a/src/Components/queue/composer.json +++ b/src/Components/queue/composer.json @@ -5,8 +5,6 @@ "description": "imi 框架的队列组件,使用 Redis 作为持久化", "require": {}, "require-dev": { - "yurunsoft/ide-helper": "~1.0", - "swoole/ide-helper": "~5.0" }, "autoload": { "psr-4": { @@ -32,11 +30,6 @@ "post-update-cmd": "Imi\\Queue\\Dev\\Dev::postUpdate" }, "extra": { - "ide-helper": { - "list": [ - "redis" - ] - } }, "minimum-stability": "dev", "prefer-stable": true,