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 f096d05 commit 95af013
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Expand Up @@ -37,8 +37,9 @@ jobs:
- windows-latest

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

steps:
- name: Checkout
Expand Down Expand Up @@ -71,13 +72,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 @@ -31,7 +31,7 @@ jobs:
- ubuntu-latest

php:
- "7.4"
- 8.1

steps:
- name: Checkout
Expand All @@ -40,9 +40,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
6 changes: 4 additions & 2 deletions .github/workflows/static.yml
Expand Up @@ -33,7 +33,9 @@ jobs:
- ubuntu-latest

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

steps:
- name: Checkout
Expand All @@ -42,7 +44,7 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
php-version: ${{ matrix.php }}
tools: composer:v2, cs2pr
coverage: none

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -17,6 +17,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/rate-limiter"
},
"require": {
Expand All @@ -32,9 +33,9 @@
"require-dev": {
"nyholm/psr7": "^1.0",
"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.12",
"vimeo/psalm": "^4.18",
"yiisoft/cache": "^1.0"
},
"provide": {
Expand Down

0 comments on commit 95af013

Please sign in to comment.