Skip to content

Commit 7a3ef07

Browse files
raised phpunit version. added php8 db tests.
1 parent 3351f56 commit 7a3ef07

File tree

3 files changed

+52
-4
lines changed

3 files changed

+52
-4
lines changed

.github/workflows/db-tests.yml renamed to .github/workflows/db-test-php-7.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ on:
99
jobs:
1010
tests:
1111
runs-on: ubuntu-18.04
12-
name: "Running Integration tests for PHP 7.4 on Neo4j ${{ matrix.neo4j-version }}"
12+
name: "Running Integration tests for PHP ${{ matrix.php-version }} on Neo4j ${{ matrix.neo4j-version }}"
1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
neo4j-version: ["3.5", "4.2", "4.3", "4.4"]
17+
php-version: ['7.4']
1718

1819
services:
1920
neo4j:
@@ -34,7 +35,7 @@ jobs:
3435
- name: Setup PHP
3536
uses: shivammathur/setup-php@v2
3637
with:
37-
php-version: '7.4'
38+
php-version: ${{ matrix.php-version }}
3839
extensions: mbstring, sockets
3940
coverage: xdebug
4041
ini-values: max_execution_time=0
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Tests with a database
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-20.04
12+
name: "Running Integration tests for PHP ${{ matrix.php-version }} on Neo4j ${{ matrix.neo4j-version }}"
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
neo4j-version: ["3.5", "4.2", "4.3", "4.4"]
17+
php-version: ['8.0', '8.1']
18+
19+
services:
20+
neo4j:
21+
image: neo4j:${{ matrix.neo4j-version }}
22+
env:
23+
NEO4J_AUTH: neo4j/nothing
24+
NEO4JLABS_PLUGINS: '["apoc"]'
25+
ports:
26+
- 7687:7687
27+
- 7474:7474
28+
options: >-
29+
--health-cmd "wget http://localhost:7474 || exit 1"
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php-version }}
39+
extensions: mbstring, sockets
40+
coverage: xdebug
41+
ini-values: max_execution_time=0
42+
43+
- name: Install dependencies
44+
run: composer install --no-progress
45+
46+
- name: Test with phpunit
47+
run: vendor/bin/phpunit --configuration phpunit.xml --testsuite "Database"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"ext-mbstring": "*"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": ">=7.5.0"
15+
"phpunit/phpunit": ">=9"
1616
},
1717
"support": {
1818
"issues": "https://github.com/neo4j-php/Bolt/issues",
@@ -43,7 +43,7 @@
4343
},
4444
"suggest": {
4545
"laudis/neo4j-php-client": "Neo4j-PHP-Client is the most advanced PHP Client for Neo4j",
46-
"ext-sockets": "Needed when using the Bolt\\connection\\Socket",
46+
"ext-sockets": "Needed when using Socket connection class",
4747
"ext-openssl": "Needed when using StreamSocket connection class with SSL"
4848
},
4949
"scripts": {

0 commit comments

Comments
 (0)