feat: Move all protocols tests to docker compose #187
Workflow file for this run
This file contains hidden or 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: | |
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: Cache Composer dependencies | |
- 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@localhost client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration | |
- name: Test bolt:// | |
run: | | |
docker compose run -e CONNECTION=bolt://neo4j:testtest@localhost client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration | |
- name: Test http:// | |
run: | | |
docker compose run -e CONNECTION=http://neo4j:testtest@localhost client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration |