Skip to content

Commit b26ce8b

Browse files
authored
Add PHP 8 support (#19)
1 parent c8e9d66 commit b26ce8b

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

.github/workflows/test-application.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,64 @@ on:
99

1010
jobs:
1111
php:
12-
name: 'Run tests with php ${{ matrix.php-version }}'
12+
name: 'PHP ${{ matrix.php-version }}, ES ${{ matrix.elasticsearch-version }}'
1313
runs-on: ubuntu-latest
1414

1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
include:
1919
- php-version: '5.6'
20+
elasticsearch-version: '5.6.14'
2021
lint: false
2122
symfony-version: '^2.8'
2223
elasticsearch-package-constraint: '^5.0'
2324

2425
- php-version: '7.0'
26+
elasticsearch-version: '5.6.14'
2527
lint: false
2628
symfony-version: '^3.4'
2729
elasticsearch-package-constraint: '^5.0'
2830

2931
- php-version: '7.2'
32+
elasticsearch-version: '5.6.14'
3033
lint: false
3134
symfony-version: '^3.4'
3235
elasticsearch-package-constraint: '^5.0'
3336

3437
- php-version: '7.3'
38+
elasticsearch-version: '5.6.14'
3539
lint: false
3640
symfony-version: '^4.4'
3741
elasticsearch-package-constraint: '^5.0'
3842

3943
- php-version: '7.4'
44+
elasticsearch-version: '5.6.14'
4045
lint: true
4146
symfony-version: '^5.0'
4247
elasticsearch-package-constraint: '^5.0'
4348

49+
- php-version: '7.4'
50+
elasticsearch-version: '7.11.1'
51+
lint: true
52+
symfony-version: '^5.0'
53+
elasticsearch-package-constraint: '^5.0'
54+
55+
- php-version: '8.0'
56+
elasticsearch-version: '7.11.1'
57+
lint: true
58+
symfony-version: '^5.0'
59+
elasticsearch-package-constraint: '^7.0'
60+
4461
services:
45-
elasticsearch5:
46-
image: elasticsearch:5.6.14
62+
elasticsearch:
63+
image: docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.elasticsearch-version }}
4764
ports:
4865
- 9200:9200
4966
env:
5067
discovery.type: 'single-node'
5168
xpack.security.enabled: 'false'
69+
ES_JAVA_OPTS: '-Xms512m -Xmx512m'
5270
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=5
5371

5472
steps:

Tests/app/config/config_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Framework Configuration
21
framework:
32
secret: "SUPER-TOP-SECRET"
43
test: ~

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^5.6|^7.0",
18+
"php": "^5.6|^7.0|^8.0",
1919
"symfony/framework-bundle": "^2.8|^3.0|^4|^5",
2020
"symfony/console": "^2.8|^3.0|^4|^5",
2121
"symfony/stopwatch": "^2.8|^3.0|^4|^5",
@@ -30,7 +30,7 @@
3030
},
3131
"require-dev": {
3232
"mikey179/vfsstream": "~1.4",
33-
"squizlabs/php_codesniffer": "~2.0",
33+
"squizlabs/php_codesniffer": "^2.0|^3.0",
3434
"symfony/browser-kit" : "^2.8|^3.4|^4|^5",
3535
"symfony/expression-language" : "^2.8|^3.4|^4|^5",
3636
"symfony/twig-bundle": "^2.8|^3.4|^4|^5",

0 commit comments

Comments
 (0)