Skip to content

Commit

Permalink
Merge pull request #15 from courtney-miles/task/AddSupportForPhp81
Browse files Browse the repository at this point in the history
Add support for PHP 8.1
  • Loading branch information
courtney-miles committed Jan 29, 2022
2 parents 3b09154 + b1a594d commit 94b9ae4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.2', '7.3', '7.4', '8.0']
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1']
composer-flag:
- '--prefer-dist'
- '--prefer-stable --prefer-lowest'
Expand Down Expand Up @@ -38,9 +38,15 @@ jobs:
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install Composer dependencies
run: composer update ${{ matrix.composer-flag }} --no-interaction --no-progress

# This may be necessary for older dev packages that do not have
# upper PHP compatibility version constraints.
- name: Update Composer Dev dependencies
run: composer update phpunit/phpunit --prefer-dist --no-interaction --no-progress

- name: Run Code Style Check for PHP ${{ matrix.php-version }}
run: composer run-script style-check

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.0-cli
FROM php:8.1-cli

# system dependecies
RUN apt-get update && apt-get install -y \
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
}
],
"require": {
"php" : "7.2 - 8.0",
"php" : "7.2 - 8.1",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit" : ">=8.2",
"php-coveralls/php-coveralls": "^2.4",
"friendsofphp/php-cs-fixer": "^3.0"
"friendsofphp/php-cs-fixer": "^3.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 94b9ae4

Please sign in to comment.