Skip to content

Commit

Permalink
Add PHP 8 support (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
toooni authored Feb 18, 2021
1 parent c8e9d66 commit b26ce8b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/test-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,64 @@ on:

jobs:
php:
name: 'Run tests with php ${{ matrix.php-version }}'
name: 'PHP ${{ matrix.php-version }}, ES ${{ matrix.elasticsearch-version }}'
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- php-version: '5.6'
elasticsearch-version: '5.6.14'
lint: false
symfony-version: '^2.8'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.0'
elasticsearch-version: '5.6.14'
lint: false
symfony-version: '^3.4'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.2'
elasticsearch-version: '5.6.14'
lint: false
symfony-version: '^3.4'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.3'
elasticsearch-version: '5.6.14'
lint: false
symfony-version: '^4.4'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.4'
elasticsearch-version: '5.6.14'
lint: true
symfony-version: '^5.0'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.4'
elasticsearch-version: '7.11.1'
lint: true
symfony-version: '^5.0'
elasticsearch-package-constraint: '^5.0'

- php-version: '8.0'
elasticsearch-version: '7.11.1'
lint: true
symfony-version: '^5.0'
elasticsearch-package-constraint: '^7.0'

services:
elasticsearch5:
image: elasticsearch:5.6.14
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.elasticsearch-version }}
ports:
- 9200:9200
env:
discovery.type: 'single-node'
xpack.security.enabled: 'false'
ES_JAVA_OPTS: '-Xms512m -Xmx512m'
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=5

steps:
Expand Down
1 change: 0 additions & 1 deletion Tests/app/config/config_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Framework Configuration
framework:
secret: "SUPER-TOP-SECRET"
test: ~
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "^5.6|^7.0",
"php": "^5.6|^7.0|^8.0",
"symfony/framework-bundle": "^2.8|^3.0|^4|^5",
"symfony/console": "^2.8|^3.0|^4|^5",
"symfony/stopwatch": "^2.8|^3.0|^4|^5",
Expand All @@ -30,7 +30,7 @@
},
"require-dev": {
"mikey179/vfsstream": "~1.4",
"squizlabs/php_codesniffer": "~2.0",
"squizlabs/php_codesniffer": "^2.0|^3.0",
"symfony/browser-kit" : "^2.8|^3.4|^4|^5",
"symfony/expression-language" : "^2.8|^3.4|^4|^5",
"symfony/twig-bundle": "^2.8|^3.4|^4|^5",
Expand Down

0 comments on commit b26ce8b

Please sign in to comment.