Skip to content

feat: Simplify acquiring and resuing connections #327

feat: Simplify acquiring and resuing connections

feat: Simplify acquiring and resuing connections #327

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: Run tests Neo4j 4
run: |
docker compose run --rm \
-f docker-compose-neo4j-4.yml \
client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
docker compose run --rm \
-f docker-compose-neo4j-4.yml \
client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
docker compose -f docker-compose-neo4j-4.yml down --remove-orphans --volumes
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: Run tests Neo4j 5
run: |
docker compose run --rm \
client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
docker compose run --rm \
client sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
docker compose down --remove-orphans --volumes