Skip to content

Commit 616fa10

Browse files
committed
Update workflows
1 parent afd2e28 commit 616fa10

9 files changed

+36
-113
lines changed

.github/workflows/composer-require-checker.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
composer-require-checker:
2525
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
2626
with:
27-
os: >-
28-
['ubuntu-latest']
2927
php: >-
3028
['8.1', '8.2', '8.3', '8.4']
29+
required-packages: >-
30+
['db']

.github/workflows/db-mssql.yml

+4-19
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,11 @@ jobs:
7575
- name: Update composer.
7676
run: composer self-update
7777

78-
- name: Set environment variables pull request linux.
79-
uses: yiisoft/actions/db/environment-linux@master
80-
81-
- name: Install db.
82-
uses: yiisoft/actions/db/subpackage-install@master
83-
with:
84-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
85-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
86-
CURRENT_PACKAGE: db
87-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
88-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
89-
90-
- name: Install db-mssql.
91-
uses: yiisoft/actions/db/subpackage-install@master
78+
- name: Install db and db-mssql.
79+
uses: yiisoft/actions/install-packages@master
9280
with:
93-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
94-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
95-
CURRENT_PACKAGE: db-mssql
96-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
97-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
81+
packages: >-
82+
['db', 'db-mssql']
9883
9984
- name: Run tests with phpunit.
10085
run: vendor/bin/phpunit --testsuite=Mssql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations

.github/workflows/db-mysql.yml

+4-19
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,11 @@ jobs:
6767
- name: Update composer.
6868
run: composer self-update
6969

70-
- name: Set environment variables pull request linux.
71-
uses: yiisoft/actions/db/environment-linux@master
72-
73-
- name: Install db.
74-
uses: yiisoft/actions/db/subpackage-install@master
75-
with:
76-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
77-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
78-
CURRENT_PACKAGE: db
79-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
80-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
81-
82-
- name: Install db-mysql.
83-
uses: yiisoft/actions/db/subpackage-install@master
70+
- name: Install db and db-mysql.
71+
uses: yiisoft/actions/install-packages@master
8472
with:
85-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
86-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
87-
CURRENT_PACKAGE: db-mysql
88-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
89-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
73+
packages: >-
74+
['db', 'db-mysql']
9075
9176
- name: Run tests with phpunit.
9277
run: vendor/bin/phpunit --testsuite=Mysql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations

.github/workflows/db-oracle.yml

+4-19
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,11 @@ jobs:
7373
- name: Update composer.
7474
run: composer self-update
7575

76-
- name: Set environment variables pull request linux.
77-
uses: yiisoft/actions/db/environment-linux@master
78-
79-
- name: Install db.
80-
uses: yiisoft/actions/db/subpackage-install@master
81-
with:
82-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
83-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
84-
CURRENT_PACKAGE: db
85-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
86-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
87-
88-
- name: Install db-oracle.
89-
uses: yiisoft/actions/db/subpackage-install@master
76+
- name: Install db and db-oracle.
77+
uses: yiisoft/actions/install-packages@master
9078
with:
91-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
92-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
93-
CURRENT_PACKAGE: db-oracle
94-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
95-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
79+
packages: >-
80+
['db', 'db-oracle']
9681
9782
- name: Run tests with phpunit.
9883
run: vendor/bin/phpunit --testsuite=Oracle --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations

.github/workflows/db-pgsql.yml

+5-20
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
services:
4545
postgres:
46-
image: postgres:16
46+
image: postgres:17
4747
env:
4848
POSTGRES_USER: root
4949
POSTGRES_PASSWORD: root
@@ -67,26 +67,11 @@ jobs:
6767
- name: Update composer.
6868
run: composer self-update
6969

70-
- name: Set environment variables pull request linux.
71-
uses: yiisoft/actions/db/environment-linux@master
72-
73-
- name: Install db.
74-
uses: yiisoft/actions/db/subpackage-install@master
75-
with:
76-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
77-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
78-
CURRENT_PACKAGE: db
79-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
80-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
81-
82-
- name: Install db-pgsql.
83-
uses: yiisoft/actions/db/subpackage-install@master
70+
- name: Install db and db-pgsql.
71+
uses: yiisoft/actions/install-packages@master
8472
with:
85-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
86-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
87-
CURRENT_PACKAGE: db-pgsql
88-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
89-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
73+
packages: >-
74+
['db', 'db-pgsql']
9075
9176
- name: Run tests with phpunit.
9277
run: vendor/bin/phpunit --testsuite=Pgsql --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations

.github/workflows/db-sqlite.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,11 @@ jobs:
6060
- name: Update composer.
6161
run: composer self-update
6262

63-
- name: Set environment variables pull request linux.
64-
if: matrix.os == 'ubuntu-latest'
65-
uses: yiisoft/actions/db/environment-linux@master
66-
67-
- name: Set environment variables pull request windows.
68-
if: matrix.os == 'windows-latest'
69-
uses: yiisoft/actions/db/environment-windows@master
70-
71-
- name: Install db.
72-
uses: yiisoft/actions/db/subpackage-install@master
73-
with:
74-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
75-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
76-
CURRENT_PACKAGE: db
77-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
78-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
79-
80-
- name: Install db-sqlite.
81-
uses: yiisoft/actions/db/subpackage-install@master
63+
- name: Install db and db-sqlite.
64+
uses: yiisoft/actions/install-packages@master
8265
with:
83-
BRANCH_NAME: ${{ env.BRANCH_NAME }}
84-
COMPOSER_ROOT_VERSION: ${{ env.COMPOSER_ROOT_VERSION }}
85-
CURRENT_PACKAGE: db-sqlite
86-
FULL_BRANCH_NAME: ${{ env.FULL_BRANCH_NAME }}
87-
WORK_PACKAGE_URL: ${{ env.WORK_PACKAGE_URL }}
66+
packages: >-
67+
['db', 'db-sqlite']
8868
8969
- name: Run tests with phpunit.
9070
run: vendor/bin/phpunit --testsuite=Sqlite --coverage-clover=coverage.xml --colors=always --display-warnings --display-deprecations

.github/workflows/mutation.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- '.github/workflows/mutation.yml'
1313
- 'composer.json'
1414

15-
name: mutation
15+
name: Mutation
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.ref }}
@@ -37,7 +37,7 @@ jobs:
3737

3838
services:
3939
postgres:
40-
image: postgres:16
40+
image: postgres:17
4141
env:
4242
POSTGRES_USER: root
4343
POSTGRES_PASSWORD: root
@@ -61,8 +61,11 @@ jobs:
6161
- name: Update composer.
6262
run: composer self-update
6363

64-
- name: Install db-pgsql.
65-
run: composer require yiisoft/db-pgsql --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
64+
- name: Install db and db-pgsql.
65+
uses: yiisoft/actions/install-packages@master
66+
with:
67+
packages: >-
68+
['db', 'db-pgsql']
6669
6770
- name: Run infection.
6871
run: |

.github/workflows/rector.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'composer.json'
77
- 'rector.php'
88

9-
name: rector
9+
name: Rector
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
@@ -16,7 +16,7 @@ jobs:
1616
rector:
1717
uses: yiisoft/actions/.github/workflows/rector.yml@master
1818
with:
19-
os: >-
20-
['ubuntu-latest']
2119
php: >-
2220
['8.4']
21+
required-packages: >-
22+
['db']

.github/workflows/static.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- 'psalm*.xml'
1515
- 'composer.json'
1616

17-
name: static analysis
17+
name: Static analysis
1818

1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
@@ -24,7 +24,7 @@ jobs:
2424
psalm:
2525
uses: yiisoft/actions/.github/workflows/psalm.yml@master
2626
with:
27-
os: >-
28-
['ubuntu-latest']
2927
php: >-
3028
['8.1', '8.2', '8.3', '8.4']
29+
required-packages: >-
30+
['db']

0 commit comments

Comments
 (0)