ci: Update tests PHP version to 8.3 #218
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: | |
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 ${{ matrix.php }} in a Neo4j 4.4 cluster" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Populate .env | |
run: | | |
cat <<EOF > .env | |
PHP_VERSION=${{ matrix.php }} | |
CONNECTION=neo4j://neo4j:testtest@neo4j | |
EOF | |
- uses: hoverkraft-tech/[email protected] | |
name: Start services | |
with: | |
compose-file: './docker-compose-neo4j-4.yml' | |
up-flags: '--build --remove-orphans' | |
- name: Test | |
run: | | |
docker compose run client composer install | |
docker compose run client ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration |