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 c5a17d3 commit a6c1946
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bechmark.yml
Expand Up @@ -39,7 +39,7 @@ jobs:
- windows-latest

php:
- "7.4"
- 7.4

steps:
- name: Checkout
Expand Down
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 @@ -18,6 +18,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/di"
},
"require": {
Expand All @@ -30,9 +31,9 @@
"league/container": "^4.2",
"phpbench/phpbench": "^1.2.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.13",
"vimeo/psalm": "^4.18",
"yiisoft/injector": "^1.0",
"yiisoft/test-support": "^1.3"
},
Expand Down

0 comments on commit a6c1946

Please sign in to comment.