From 616fa10a00240fe6041527a1deae50a4f85dbe0a Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 15 Apr 2025 13:12:10 +0700 Subject: [PATCH] Update workflows --- .../workflows/composer-require-checker.yml | 4 +-- .github/workflows/db-mssql.yml | 23 +++------------ .github/workflows/db-mysql.yml | 23 +++------------ .github/workflows/db-oracle.yml | 23 +++------------ .github/workflows/db-pgsql.yml | 25 ++++------------- .github/workflows/db-sqlite.yml | 28 +++---------------- .github/workflows/mutation.yml | 11 +++++--- .github/workflows/rector.yml | 6 ++-- .github/workflows/static.yml | 6 ++-- 9 files changed, 36 insertions(+), 113 deletions(-) diff --git a/.github/workflows/composer-require-checker.yml b/.github/workflows/composer-require-checker.yml index 63a6ae994..1face1f24 100644 --- a/.github/workflows/composer-require-checker.yml +++ b/.github/workflows/composer-require-checker.yml @@ -24,7 +24,7 @@ jobs: composer-require-checker: uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master with: - os: >- - ['ubuntu-latest'] php: >- ['8.1', '8.2', '8.3', '8.4'] + required-packages: >- + ['db'] diff --git a/.github/workflows/db-mssql.yml b/.github/workflows/db-mssql.yml index 4c8cfc053..c752d0198 100644 --- a/.github/workflows/db-mssql.yml +++ b/.github/workflows/db-mssql.yml @@ -75,26 +75,11 @@ jobs: - name: Update composer. run: composer self-update - - name: Set environment variables pull request linux. - uses: yiisoft/actions/db/environment-linux@master - - - name: Install db. - uses: yiisoft/actions/db/subpackage-install@master - with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} - - - name: Install db-mssql. - uses: yiisoft/actions/db/subpackage-install@master + - name: Install db and db-mssql. + uses: yiisoft/actions/install-packages@master with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db-mssql - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} + packages: >- + ['db', 'db-mssql'] - name: Run tests with phpunit. run: vendor/bin/phpunit --testsuite=Mssql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations diff --git a/.github/workflows/db-mysql.yml b/.github/workflows/db-mysql.yml index 0266c79ae..4db6bff0a 100644 --- a/.github/workflows/db-mysql.yml +++ b/.github/workflows/db-mysql.yml @@ -67,26 +67,11 @@ jobs: - name: Update composer. run: composer self-update - - name: Set environment variables pull request linux. - uses: yiisoft/actions/db/environment-linux@master - - - name: Install db. - uses: yiisoft/actions/db/subpackage-install@master - with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} - - - name: Install db-mysql. - uses: yiisoft/actions/db/subpackage-install@master + - name: Install db and db-mysql. + uses: yiisoft/actions/install-packages@master with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db-mysql - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} + packages: >- + ['db', 'db-mysql'] - name: Run tests with phpunit. run: vendor/bin/phpunit --testsuite=Mysql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations diff --git a/.github/workflows/db-oracle.yml b/.github/workflows/db-oracle.yml index 6eb16852b..1a44efdf9 100644 --- a/.github/workflows/db-oracle.yml +++ b/.github/workflows/db-oracle.yml @@ -73,26 +73,11 @@ jobs: - name: Update composer. run: composer self-update - - name: Set environment variables pull request linux. - uses: yiisoft/actions/db/environment-linux@master - - - name: Install db. - uses: yiisoft/actions/db/subpackage-install@master - with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} - - - name: Install db-oracle. - uses: yiisoft/actions/db/subpackage-install@master + - name: Install db and db-oracle. + uses: yiisoft/actions/install-packages@master with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db-oracle - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} + packages: >- + ['db', 'db-oracle'] - name: Run tests with phpunit. run: vendor/bin/phpunit --testsuite=Oracle --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations diff --git a/.github/workflows/db-pgsql.yml b/.github/workflows/db-pgsql.yml index 3dc4ace5f..8bb745aa4 100644 --- a/.github/workflows/db-pgsql.yml +++ b/.github/workflows/db-pgsql.yml @@ -43,7 +43,7 @@ jobs: services: postgres: - image: postgres:16 + image: postgres:17 env: POSTGRES_USER: root POSTGRES_PASSWORD: root @@ -67,26 +67,11 @@ jobs: - name: Update composer. run: composer self-update - - name: Set environment variables pull request linux. - uses: yiisoft/actions/db/environment-linux@master - - - name: Install db. - uses: yiisoft/actions/db/subpackage-install@master - with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} - - - name: Install db-pgsql. - uses: yiisoft/actions/db/subpackage-install@master + - name: Install db and db-pgsql. + uses: yiisoft/actions/install-packages@master with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db-pgsql - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} + packages: >- + ['db', 'db-pgsql'] - name: Run tests with phpunit. run: vendor/bin/phpunit --testsuite=Pgsql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations diff --git a/.github/workflows/db-sqlite.yml b/.github/workflows/db-sqlite.yml index 8d1ce8f02..3b8528d64 100644 --- a/.github/workflows/db-sqlite.yml +++ b/.github/workflows/db-sqlite.yml @@ -60,31 +60,11 @@ jobs: - name: Update composer. run: composer self-update - - name: Set environment variables pull request linux. - if: matrix.os == 'ubuntu-latest' - uses: yiisoft/actions/db/environment-linux@master - - - name: Set environment variables pull request windows. - if: matrix.os == 'windows-latest' - uses: yiisoft/actions/db/environment-windows@master - - - name: Install db. - uses: yiisoft/actions/db/subpackage-install@master - with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} - - - name: Install db-sqlite. - uses: yiisoft/actions/db/subpackage-install@master + - name: Install db and db-sqlite. + uses: yiisoft/actions/install-packages@master with: - BRANCH_NAME: ${{ env.BRANCH_NAME }} - COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }} - CURRENT_PACKAGE: db-sqlite - FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }} - WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }} + packages: >- + ['db', 'db-sqlite'] - name: Run tests with phpunit. run: vendor/bin/phpunit --testsuite=Sqlite --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations diff --git a/.github/workflows/mutation.yml b/.github/workflows/mutation.yml index 749580626..cb3700a9f 100644 --- a/.github/workflows/mutation.yml +++ b/.github/workflows/mutation.yml @@ -12,7 +12,7 @@ on: - '.github/workflows/mutation.yml' - 'composer.json' -name: mutation +name: Mutation concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -37,7 +37,7 @@ jobs: services: postgres: - image: postgres:16 + image: postgres:17 env: POSTGRES_USER: root POSTGRES_PASSWORD: root @@ -61,8 +61,11 @@ jobs: - name: Update composer. run: composer self-update - - name: Install db-pgsql. - run: composer require yiisoft/db-pgsql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi + - name: Install db and db-pgsql. + uses: yiisoft/actions/install-packages@master + with: + packages: >- + ['db', 'db-pgsql'] - name: Run infection. run: | diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 4f2528500..33529155b 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -6,7 +6,7 @@ on: - 'composer.json' - 'rector.php' -name: rector +name: Rector concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -16,7 +16,7 @@ jobs: rector: uses: yiisoft/actions/.github/workflows/rector.yml@master with: - os: >- - ['ubuntu-latest'] php: >- ['8.4'] + required-packages: >- + ['db'] diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index d92b0c00b..287f4ac96 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -14,7 +14,7 @@ on: - 'psalm*.xml' - 'composer.json' -name: static analysis +name: Static analysis concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -24,7 +24,7 @@ jobs: psalm: uses: yiisoft/actions/.github/workflows/psalm.yml@master with: - os: >- - ['ubuntu-latest'] php: >- ['8.1', '8.2', '8.3', '8.4'] + required-packages: >- + ['db']