Skip to content

Commit

Permalink
Merge pull request #72 from markstory/php82
Browse files Browse the repository at this point in the history
Add PHP8.2 to CI matrix.
  • Loading branch information
markstory authored Jan 9, 2023
2 parents 5b3f7d7 + c6929c0 commit 017350e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ on:

jobs:
testsuite-linux:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: ['7.2', '7.4', '8.0', '8.1']
php-version: ['7.4', '8.0', '8.1', '8.2']
prefer-lowest: ['']
include:
- php-version: '7.2'
- php-version: '7.4'
prefer-lowest: 'prefer-lowest'

steps:
Expand Down Expand Up @@ -49,17 +49,15 @@ jobs:

- name: Composer install
run: |
if [[ ${{ matrix.php-version }} == '8.0' || ${{ matrix.php-version }} == '8.1' ]]; then
composer install --ignore-platform-reqs
elif ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
composer update --prefer-lowest --prefer-stable
else
composer install
fi
- name: Run PHPUnit
run: |
if [[ ${{ matrix.php-version }} == '8.1' ]]; then
if [[ ${{ matrix.php-version }} == '8.2' ]]; then
vendor/bin/phpunit --coverage-clover=coverage.xml
else
vendor/bin/phpunit
Expand All @@ -71,7 +69,7 @@ jobs:

cs-stan:
name: Coding Standard & Static Analysis
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v1
Expand All @@ -81,7 +79,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.2'
extensions: mbstring, intl
coverage: none

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": "https://github.com/markstory/mini-asset"
},
"require": {
"php": ">=7.2,<8.2",
"php": ">=7.4,<8.3",
"league/climate": "~3.0"
},
"require-dev": {
Expand Down

0 comments on commit 017350e

Please sign in to comment.