feat: Integrate PSR LoggerInterface and add logging #206
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests-v4: | |
runs-on: ubuntu-latest | |
name: "Running on PHP 8.1 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 | |
- uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: './docker-compose-neo4j-4.yml' | |
up-flags: '--build --remove-orphans' | |
- name: Composer install | |
run: | | |
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 | |
- name: Test bolt:// | |
run: | | |
docker compose run -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 | |
tests-v5: | |
runs-on: ubuntu-latest | |
name: "Running on PHP 8.1 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 | |
- uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: './docker-compose.yml' | |
up-flags: '--build' | |
- name: Composer install | |
run: | | |
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 | |
- name: Test bolt:// | |
run: | | |
docker compose run -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 |