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 22
22
echo "PHP_VERSION=${{ matrix.php }}" > .env
23
23
echo "CONNECTION=neo4j://neo4j:testtest@server1" >> .env
24
24
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
+
25
38
- name : Run integration tests
26
39
run : |
27
40
docker compose -f docker-compose-neo4j-4.yml up -d --build --remove-orphans --wait \
31
44
server4
32
45
33
46
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
35
48
36
49
# tear down services
37
50
docker compose -f docker-compose-neo4j-4.yml down --remove-orphans --volumes
You can’t perform that action at this time.
0 commit comments