Skip to content

feat: Simplify acquiring and resuing connections #325

feat: Simplify acquiring and resuing connections

feat: Simplify acquiring and resuing connections #325

name: Integration Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests-v4:
runs-on: ubuntu-latest
strategy:
matrix:
php: ["8.1.31", "8.3.17"]
name: "Running on PHP ${{ matrix.php }} with a Neo4j 4 instance connecting over all available protocols"
steps:
- uses: actions/checkout@v4
- name: Populate .env
run: |
echo "PHP_VERSION=${{ matrix.php }}" > .env
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
- name: Composer install
run: |
docker compose -f docker-compose-neo4j-4.yml up --force-recreate --build --remove-orphans -d
docker compose -f docker-compose-neo4j-4.yml run client composer install
- name: Test neo4j://
run: |
docker compose -f docker-compose-neo4j-4.yml 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 -f docker-compose-neo4j-4.yml run \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=bolt://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
tests-v5:
runs-on: ubuntu-latest
strategy:
matrix:
php: ["8.1.31", "8.3.17"]
name: "Running on PHP ${{ matrix.php }} with a Neo4j 5 instance connecting over all available protocols"
steps:
- uses: actions/checkout@v4
- name: Populate .env
run: |
echo "PHP_VERSION=${{ matrix.php }}" > .env
echo "CONNECTION=neo4j://neo4j:testtest@neo4j" >> .env
- name: Composer install
run: |
docker compose up --force-recreate --build --remove-orphans -d
docker compose run --rm client composer install
- name: Test neo4j://
run: |
docker compose run --rm \
-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 --rm \
-e PHP_VERSION=${{ matrix.php }} \
-e CONNECTION=bolt://neo4j:testtest@neo4j \
client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration