Skip to content

Commit 3ebf159

Browse files
committed
Add PHP 8.1 support to GitHub workflow actions
1 parent eef658d commit 3ebf159

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ jobs:
3737
- windows-latest
3838

3939
php:
40-
- "7.4"
41-
- "8.0"
40+
- 7.4
41+
- 8.0
42+
- 8.1
4243

4344
steps:
4445
- name: Checkout
@@ -71,13 +72,8 @@ jobs:
7172
- name: Update composer
7273
run: composer self-update
7374

74-
- name: Install dependencies with composer php 7.4
75-
if: matrix.php == '7.4'
75+
- name: Install dependencies with composer
7676
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
7777

78-
- name: Install dependencies with composer php 8.0
79-
if: matrix.php == '8.0'
80-
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
81-
8278
- name: Run tests with phpunit
8379
run: vendor/bin/phpunit --colors=always

.github/workflows/mutation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- ubuntu-latest
3232

3333
php:
34-
- "7.4"
34+
- 8.1
3535

3636
steps:
3737
- name: Checkout
@@ -40,9 +40,9 @@ jobs:
4040
- name: Install PHP
4141
uses: shivammathur/setup-php@v2
4242
with:
43-
php-version: "${{ matrix.php }}"
43+
php-version: ${{ matrix.php }}
4444
ini-values: memory_limit=-1
45-
coverage: "pcov"
45+
coverage: pcov
4646
tools: composer:v2
4747

4848
- name: Determine composer cache directory

.github/workflows/static.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
- ubuntu-latest
3434

3535
php:
36-
- "7.4"
36+
- 7.4
37+
- 8.0
38+
- 8.1
3739

3840
steps:
3941
- name: Checkout
@@ -42,7 +44,7 @@ jobs:
4244
- name: Install PHP
4345
uses: shivammathur/setup-php@v2
4446
with:
45-
php-version: "${{ matrix.php }}"
47+
php-version: ${{ matrix.php }}
4648
tools: composer:v2, cs2pr
4749
coverage: none
4850

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"forum": "https://www.yiiframework.com/forum/",
1818
"wiki": "https://www.yiiframework.com/wiki/",
1919
"irc": "irc://irc.freenode.net/yii",
20+
"chat": "https://t.me/yii3en",
2021
"source": "https://github.com/yiisoft/error-handler"
2122
},
2223
"require": {
@@ -36,9 +37,9 @@
3637
"httpsoft/http-message": "^1.0.9",
3738
"phpunit/phpunit": "^9.5",
3839
"psr/http-server-handler": "^1.0",
39-
"roave/infection-static-analysis-plugin": "^1.14",
40+
"roave/infection-static-analysis-plugin": "^1.16",
4041
"spatie/phpunit-watcher": "^1.23",
41-
"vimeo/psalm": "^4.12",
42+
"vimeo/psalm": "^4.18",
4243
"yiisoft/test-support": "^1.3"
4344
},
4445
"autoload": {

0 commit comments

Comments
 (0)