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 672fd0c commit 474cd53
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 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 @@ -81,13 +82,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 @@ -35,7 +35,7 @@ jobs:
- ubuntu-latest

php:
- "7.4"
- 8.1

steps:
- name: Checkout
Expand All @@ -44,10 +44,10 @@ jobs:
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
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
7 changes: 4 additions & 3 deletions composer.json
Expand Up @@ -16,6 +16,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/translator-message-gettext"
},
"require": {
Expand All @@ -24,10 +25,10 @@
"ext-gettext": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"roave/infection-static-analysis-plugin": "^1.14",
"phpunit/phpunit": "^9.5",
"roave/infection-static-analysis-plugin": "^1.16",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^4.2"
"vimeo/psalm": "^4.18"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 474cd53

Please sign in to comment.