Skip to content

Commit 3e81d75

Browse files
batyrmastyrvjik
andauthored
Change supported PHP version to 8.1-8.4 (#91)
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
1 parent 9bf3cf2 commit 3e81d75

12 files changed

Lines changed: 59 additions & 35 deletions

File tree

.github/workflows/bc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
os: >-
3434
['ubuntu-latest']
3535
php: >-
36-
['8.0']
36+
['8.4']

.github/workflows/mariadb.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737

3838
strategy:
39+
max-parallel: 2
3940
matrix:
4041
os:
4142
- ubuntu-latest
4243

4344
php:
44-
- 8.0
4545
- 8.1
4646
- 8.2
47+
- 8.3
48+
- 8.4
4749

4850
mariadb:
4951
- mariadb:10.4

.github/workflows/mssql.yml

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,44 +28,56 @@ concurrency:
2828

2929
jobs:
3030
tests:
31-
name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql }}
31+
name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql.server }}
3232

3333
env:
34-
extensions: pdo, pdo_sqlsrv-5.10.1
34+
extensions: pdo, pdo_sqlsrv-5.12
3535

36-
runs-on: ${{ matrix.os }}
36+
runs-on: 'ubuntu-latest'
3737

3838
strategy:
39+
max-parallel: 2
3940
matrix:
40-
os:
41-
- ubuntu-latest
42-
4341
php:
44-
- 8.0
4542
- 8.1
4643
- 8.2
44+
- 8.3
45+
- 8.4
4746

4847
mssql:
49-
- server:2019-latest
50-
- server:2022-latest
48+
- server: 2022-latest
49+
odbc-version: 18
50+
flag: "-C"
51+
52+
include:
53+
- php: 8.4
54+
mssql:
55+
server: 2019-latest
56+
odbc-version: 18
57+
flag: "-C"
5158

5259
services:
5360
mssql:
54-
image: mcr.microsoft.com/mssql/${{ matrix.mssql }}
61+
image: mcr.microsoft.com/mssql/server:${{ matrix.mssql.server }}
5562
env:
56-
SA_PASSWORD: YourStrong!Passw0rd
63+
MSSQL_SA_PASSWORD: YourStrong!Passw0rd
5764
ACCEPT_EULA: Y
5865
MSSQL_PID: Developer
5966
ports:
6067
- 1433:1433
61-
options: --name=mssql --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3
68+
options: --name=mssql --health-cmd="/opt/mssql-tools${{ matrix.mssql.odbc-version }}/bin/sqlcmd ${{ matrix.mssql.flag }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3
6269

6370
steps:
6471
- name: Checkout.
65-
uses: actions/checkout@v3
72+
uses: actions/checkout@v5
73+
74+
- name: Install ODBC driver.
75+
run: |
76+
sudo curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
77+
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
6678
6779
- name: Create MS SQL Database.
68-
run: docker exec -i mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'
80+
run: docker exec -i mssql /opt/mssql-tools${{ matrix.mssql.odbc-version }}/bin/sqlcmd ${{ matrix.mssql.flag }} -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'
6981

7082
- name: Install PHP with extensions.
7183
uses: shivammathur/setup-php@v2
@@ -86,7 +98,7 @@ jobs:
8698
run: vendor/bin/phpunit --testsuite=Mssql --coverage-clover=coverage.xml --colors=always
8799

88100
- name: Upload coverage to Codecov.
89-
if: matrix.php == '8.1'
101+
if: matrix.php == '8.4'
90102
uses: codecov/codecov-action@v3
91103
with:
92104
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/mutation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- ubuntu-latest
4040

4141
php:
42-
- 8.3
42+
- 8.4
4343

4444
services:
4545
postgres:
@@ -73,6 +73,6 @@ jobs:
7373

7474
- name: Run infection.
7575
run: |
76-
vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --only-covered --test-framework-options="--testsuite=Pgsql"
76+
vendor/bin/roave-infection-static-analysis-plugin --threads=2 --ignore-msi-with-no-mutations --test-framework-options="--testsuite=Pgsql"
7777
env:
7878
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/mysql.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737

3838
strategy:
39+
max-parallel: 2
3940
matrix:
4041
os:
4142
- ubuntu-latest
4243

4344
php:
44-
- 8.0
4545
- 8.1
4646
- 8.2
47+
- 8.3
48+
- 8.4
4749

4850
mysql:
4951
- mysql:5.7
@@ -82,7 +84,7 @@ jobs:
8284
run: vendor/bin/phpunit --testsuite=Mysql --coverage-clover=coverage.xml --colors=always
8385

8486
- name: Upload coverage to Codecov.
85-
if: matrix.php == '8.1'
87+
if: matrix.php == '8.4'
8688
uses: codecov/codecov-action@v3
8789
with:
8890
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/oracle.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737

3838
strategy:
39+
max-parallel: 2
3940
matrix:
4041
os:
4142
- ubuntu-latest
4243

4344
php:
44-
- 8.0
4545
- 8.1
4646
- 8.2
47+
- 8.3
48+
- 8.4
4749

4850
oracle:
4951
- 18
@@ -87,7 +89,7 @@ jobs:
8789
run: vendor/bin/phpunit --testsuite=Oracle --coverage-clover=coverage.xml --colors=always
8890

8991
- name: Upload coverage to Codecov.
90-
if: matrix.php == '8.1'
92+
if: matrix.php == '8.4'
9193
uses: codecov/codecov-action@v3
9294
with:
9395
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pgsql.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737

3838
strategy:
39+
max-parallel: 2
3940
matrix:
4041
os:
4142
- ubuntu-latest
4243

4344
php:
44-
- 8.0
4545
- 8.1
4646
- 8.2
47+
- 8.3
48+
- 8.4
4749

4850
pgsql:
4951
- 9
@@ -88,7 +90,7 @@ jobs:
8890
run: vendor/bin/phpunit --testsuite=Pgsql --coverage-clover=coverage.xml --colors=always
8991

9092
- name: Upload coverage to Codecov.
91-
if: matrix.php == '8.1'
93+
if: matrix.php == '8.4'
9294
uses: codecov/codecov-action@v3
9395
with:
9496
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/sqlite.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737

3838
strategy:
39+
max-parallel: 2
3940
matrix:
4041
os:
4142
- ubuntu-latest
4243
- windows-latest
4344

4445
php:
45-
- 8.0
4646
- 8.1
4747
- 8.2
48+
- 8.3
49+
- 8.4
4850

4951
steps:
5052
- name: Checkout.
@@ -69,7 +71,7 @@ jobs:
6971
run: vendor/bin/phpunit --testsuite=Sqlite --coverage-clover=coverage.xml --colors=always
7072

7173
- name: Upload coverage to Codecov.
72-
if: matrix.php == '8.1'
74+
if: matrix.php == '8.4'
7375
uses: codecov/codecov-action@v3
7476
with:
7577
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/static.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ jobs:
3333
runs-on: ${{ matrix.os }}
3434

3535
strategy:
36+
max-parallel: 2
3637
matrix:
3738
os:
3839
- ubuntu-latest
3940

4041
php:
41-
- '8.1'
42-
- '8.2'
43-
- '8.3'
42+
- 8.1
43+
- 8.2
44+
- 8.3
45+
- 8.4
4446

4547
steps:
4648
- name: Checkout.
@@ -57,7 +59,7 @@ jobs:
5759
run: composer self-update
5860

5961
- name: Install dependencies with composer.
60-
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
62+
run: composer require yiisoft/db-sqlite --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
6163

6264
- name: Static analysis,
6365
run: vendor/bin/psalm --shepherd --stats --output-format=checkstyle --php-version=${{ matrix.php }} | cs2pr --graceful-warnings --colorize

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
## 1.0.1 under development
44

5-
- no changes in this release.
5+
- Chg #91: Change supported PHP versions to `8.1 - 8.4` (@batyrmastyr)
66

77
1.0.0 May 09, 2023

0 commit comments

Comments
 (0)