Skip to content

Commit

Permalink
Add PHP 8.1 support to GitHub workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Jan 26, 2022
1 parent 8ee3357 commit 6a6c841
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Expand Up @@ -38,8 +38,9 @@ jobs:
- windows-latest

php:
- "7.4"
- "8.0"
- 7.4
- 8.0
- 8.1

steps:
- name: Checkout
Expand Down Expand Up @@ -72,13 +73,8 @@ jobs:
- name: Update composer
run: composer self-update

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

- name: Install dependencies with composer php 8.0
if: matrix.php == '8.0'
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit
run: vendor/bin/phpunit --colors=always
6 changes: 3 additions & 3 deletions .github/workflows/mutation.yml
Expand Up @@ -34,7 +34,7 @@ jobs:
- ubuntu-latest

php:
- "7.4"
- 8.1

steps:
- name: Checkout
Expand All @@ -43,9 +43,9 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
php-version: ${{ matrix.php }}
ini-values: memory_limit=-1
coverage: "pcov"
coverage: pcov
tools: composer:v2

- name: Determine composer cache directory
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/static.yml
Expand Up @@ -33,8 +33,9 @@ jobs:
- ubuntu-latest

php:
- "7.4"
- "8.0"
- 7.4
- 8.0
- 8.1

steps:
- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -12,6 +12,7 @@
"forum": "https://www.yiiframework.com/forum/",
"wiki": "https://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"chat": "https://t.me/yii3en",
"source": "https://github.com/yiisoft/factory"
},
"require": {
Expand All @@ -21,9 +22,9 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"roave/infection-static-analysis-plugin": "^1.14",
"roave/infection-static-analysis-plugin": "^1.16",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^4.9",
"vimeo/psalm": "^4.18",
"yiisoft/test-support": "^1.3"
},
"autoload": {
Expand Down

0 comments on commit 6a6c841

Please sign in to comment.