File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 2222 echo "PHP_VERSION=${{ matrix.php }}" > .env
2323 echo "CONNECTION=neo4j://neo4j:testtest@server1" >> .env
2424
25+ - name : Cache PHP deps
26+ uses : actions/cache@v3
27+ with :
28+ path : vendor
29+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
30+ restore-keys : |
31+ ${{ runner.os }}-php-${{ matrix.php }}-
32+
33+ - name : Install PHP deps
34+ if : steps.cache-php-deps.outputs.cache-hit != 'true'
35+ run : |
36+ docker compose -f docker-compose-neo4j-4.yml run --rm client composer install
37+
2538 - name : Run integration tests
2639 run : |
2740 docker compose -f docker-compose-neo4j-4.yml up -d --build --remove-orphans --wait \
3144 server4
3245
3346 docker compose -f docker-compose-neo4j-4.yml run --rm client \
34- sh -c "composer install && ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration"
47+ ./vendor/bin/phpunit -c phpunit.xml.dist --testsuite Integration
3548
3649 # tear down services
3750 docker compose -f docker-compose-neo4j-4.yml down --remove-orphans --volumes
You can’t perform that action at this time.
0 commit comments