Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/integration-test-cluster-neo4j-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.3]
env:
PHP_VERSION: ${{ matrix.php }}
CONNECTION: neo4j://neo4j:testtest@localhost:7688
name: "Running on PHP 8.1 in a Neo4j 4.4 cluster"
name: "Running on PHP ${{ matrix.php }} in a Neo4j 4.4 cluster"

steps:
- uses: actions/checkout@v2
- name: Populate .env
run: |
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
echo "PHP_VERSION=${{ matrix.php }}" > .env
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
- uses: hoverkraft-tech/[email protected]
name: Start services
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/integration-test-cluster-neo4j-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.3]
env:
PHP_VERSION: ${{ matrix.php }}
CONNECTION: neo4j://neo4j:testtest@localhost:7687
name: "Running on PHP 8.1 with a Neo4j 5.20-enterprise cluster"
name: "Running on PHP ${{ matrix.php }} with a Neo4j 5.20-enterprise cluster"

steps:
- uses: actions/checkout@v2
- name: Populate .env
run: |
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
echo "PHP_VERSION=${{ matrix.php }}" > .env
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
- uses: hoverkraft-tech/[email protected]
name: Start services
with:
Expand Down
46 changes: 36 additions & 10 deletions .github/workflows/integration-test-single-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ on:
jobs:
tests-v4:
runs-on: ubuntu-latest
name: "Running on PHP 8.1 with a Neo4j 4 instance connecting over all available protocols"
strategy:
matrix:
php: [8.1, 8.3]
name: "Running on PHP ${{ matrix.php }} with a Neo4j 4 instance connecting over all available protocols"

steps:
- uses: actions/checkout@v2
- name: Populate .env
run: |
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
echo "PHP_VERSION=${{ matrix.php }}" > .env
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
- uses: hoverkraft-tech/[email protected]
name: Start services
with:
Expand All @@ -28,22 +32,35 @@ jobs:
docker compose run client composer install
- name: Test neo4j://
run: |
docker compose run -e CONNECTION=neo4j://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
docker compose run \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=neo4j://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
- name: Test bolt://
run: |
docker compose run -e CONNECTION=bolt://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
docker compose run \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=bolt://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
- name: Test http://
run: |
docker compose run -e CONNECTION=http://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
docker compose run \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=http://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
tests-v5:
runs-on: ubuntu-latest
name: "Running on PHP 8.1 with a Neo4j 5 instance connecting over all available protocols"
strategy:
matrix:
php: [8.1, 8.3]
name: "Running on PHP ${{ matrix.php }} with a Neo4j 5 instance connecting over all available protocols"

steps:
- uses: actions/checkout@v2
- name: Populate .env
run: |
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" > .env
echo "PHP_VERSION=${{ matrix.php }}" > .env
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
- uses: hoverkraft-tech/[email protected]
name: Start services
with:
Expand All @@ -54,10 +71,19 @@ jobs:
docker compose run client composer install
- name: Test neo4j://
run: |
docker compose run -e CONNECTION=neo4j://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
docker compose run \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=neo4j://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
- name: Test bolt://
run: |
docker compose run -e CONNECTION=bolt://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
docker compose run \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=bolt://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
- name: Test http://
run: |
docker compose run -e CONNECTION=http://neo4j:testtest@neo4j client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
docker compose run \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=http://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: php-actions/composer@v6
with:
progress: yes
php_version: 8.0
php_version: 8.3
version: 2
- name: "PHP-CS-Fixer"
run: vendor/bin/php-cs-fixer fix --dry-run
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
name: "Running on PHP 8.1"
name: "Running Unit Tests"
strategy:
matrix:
php: ['8.1', '8.2', '8.3']

steps:
- uses: actions/checkout@v2
Expand All @@ -23,12 +26,12 @@ jobs:
- uses: php-actions/composer@v6
with:
progress: yes
php_version: 8.1
php_version: ${{ matrix.php }}
version: 2
- uses: php-actions/phpunit@v3
with:
configuration: phpunit.xml.dist
php_version: 8.1
php_version: ${{ matrix.php }}
memory_limit: 1024M
version: 10
testsuite: Unit
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM php:8.1-cli
ARG PHP_VERSION

FROM php:${PHP_VERSION}-cli
RUN apt-get update \
&& apt-get install -y \
libzip-dev \
Expand Down
5 changes: 4 additions & 1 deletion docker-compose-neo4j-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
PHP_VERSION: ${PHP_VERSION}
networks:
- neo4j
volumes:
Expand All @@ -44,7 +46,8 @@ services:
context: .
dockerfile: Dockerfile
args:
- WITH_XDEBUG=true
PHP_VERSION: ${PHP_VERSION}
WITH_XDEBUG: true
working_dir: /opt/project
volumes:
- .:/opt/project
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ x-definitions:
build:
context: .
dockerfile: Dockerfile
args:
PHP_VERSION: ${PHP_VERSION}
volumes:
- .:/opt/project
x-common-cluster:
Expand Down
Loading