Skip to content

Commit

Permalink
Update: 对 ci 输出进行分组
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Oct 27, 2023
1 parent f089053 commit d13bdb8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,17 @@ jobs:
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
Expand Down Expand Up @@ -340,9 +346,15 @@ jobs:
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: |
Expand Down Expand Up @@ -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: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ jobs:

- 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
6 changes: 6 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,19 @@ jobs:

- 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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,19 @@ jobs:

- 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
Expand Down

0 comments on commit d13bdb8

Please sign in to comment.