Skip to content

Commit 8cb40d3

Browse files
committed
test out composer cache
1 parent 9198beb commit 8cb40d3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/integration-test-cluster-neo4j-4.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ jobs:
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 \
@@ -31,7 +44,7 @@ jobs:
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

0 commit comments

Comments
 (0)