Skip to content

Commit 801cbf6

Browse files
committed
Add PHP 8.1 support to GitHub workflow actions
1 parent 55e2fef commit 801cbf6

4 files changed

Lines changed: 19 additions & 20 deletions

File tree

.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: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,26 @@
99
"logger",
1010
"psr-3"
1111
],
12-
"homepage": "http://www.yiiframework.com/",
12+
"homepage": "https://www.yiiframework.com/",
1313
"license": "BSD-3-Clause",
1414
"support": {
1515
"source": "https://github.com/yiisoft/log",
1616
"issues": "https://github.com/yiisoft/log/issues",
17-
"forum": "http://www.yiiframework.com/forum/",
18-
"wiki": "http://www.yiiframework.com/wiki/",
19-
"irc": "irc://irc.freenode.net/yii"
17+
"forum": "https://www.yiiframework.com/forum/",
18+
"wiki": "https://www.yiiframework.com/wiki/",
19+
"irc": "irc://irc.freenode.net/yii",
20+
"chat": "https://t.me/yii3en"
2021
},
2122
"require": {
2223
"php": "^7.4|^8.0",
2324
"psr/log": "^1.1",
2425
"yiisoft/var-dumper": "^1.0"
2526
},
2627
"require-dev": {
27-
"phpunit/phpunit": "^9.4",
28-
"roave/infection-static-analysis-plugin": "^1.14",
28+
"phpunit/phpunit": "^9.5",
29+
"roave/infection-static-analysis-plugin": "^1.16",
2930
"spatie/phpunit-watcher": "^1.23",
30-
"vimeo/psalm": "^4.3"
31+
"vimeo/psalm": "^4.18"
3132
},
3233
"provide": {
3334
"psr/log-implementation": "1.0.0"

0 commit comments

Comments
 (0)