Skip to content

Commit

Permalink
Merge pull request #6 from 21TORR/next
Browse files Browse the repository at this point in the history
Allow PHP 8.0
  • Loading branch information
apfelbox authored Dec 1, 2020
2 parents dc78c92 + 7dff3c5 commit 997b02a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
name: CI

on: [ push ]
on: [ push, pull_request ]

jobs:
build-test:
runs-on: ubuntu-latest

strategy:
matrix:
php: ['7.4', '8.0']

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php }}"
tools: pecl

- name: Display versions
run: |
php --version
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
php -i
- name: Install Composer
uses: php-actions/composer@v1

Expand All @@ -20,6 +38,8 @@ jobs:

- name: PHP CS Fixer
run: "./vendor/bin/php-cs-fixer fix --diff --config vendor-bin/test/vendor/21torr/php-cs/.php_cs.dist --dry-run --no-interaction"
env:
PHP_CS_FIXER_IGNORE_ENV: 1

- name: PHPStan
run: "./vendor/bin/phpstan analyze -c vendor-bin/test/vendor/21torr/php-cs/phpstan/lib.neon ."
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.1.1
=====

* (improvement) Allow PHP 8.0


2.1.0
=====

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"php": "^7.4",
"php": "^7.4 || ^8.0",
"symfony/config": "^5.1",
"symfony/dependency-injection": "^5.1",
"symfony/http-kernel": "^5.1"
Expand Down

0 comments on commit 997b02a

Please sign in to comment.