File tree Expand file tree Collapse file tree 1 file changed +9
-26
lines changed Expand file tree Collapse file tree 1 file changed +9
-26
lines changed Original file line number Diff line number Diff line change @@ -11,40 +11,23 @@ jobs:
1111
1212 services :
1313 neo4j :
14- image : neo4j:5.5 # Use a stable version instead of ' latest'
14+ image : neo4j:latest
1515 ports :
1616 - 7474:7474
1717 - 7687:7687
18- env :
19- NEO4J_AUTH : neo4j/password
20- options :
21- --health-cmd="curl --silent --fail http://localhost:7474"
22- --health-interval=10s
23- --health-retries=5
24- --health-timeout=5s
2518
2619 steps :
2720 - name : Checkout code
2821 uses : actions/checkout@v3
2922
30- - name : Set up Docker Compose
31- run : docker-compose -f docker-compose.yml up -d
23+ - name : Set up PHP
24+ uses : shivammathur/setup-php@v2
25+ with :
26+ php-version : 8.2
27+ tools : composer
3228
33- - name : Wait for services to be ready
34- run : |
35- echo "Waiting for Neo4j service to be ready..."
36- # Check if Neo4j is up and running by polling the health endpoint
37- until curl --silent --fail http://localhost:7474; do
38- echo "Waiting for Neo4j to become available..."
39- sleep 5
40- done
41-
42- - name : Install Composer dependencies
43- run : docker exec -t php-app composer install --no-progress --prefer-dist
29+ - name : Install dependencies
30+ run : composer install --no-progress --prefer-dist
4431
4532 - name : Run PHP CS Fixer
46- run : |
47- docker exec -t php-app vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes
48-
49- - name : Clean up Docker
50- run : docker-compose down
33+ run : vendor/bin/php-cs-fixer fix --dry-run --diff --allow-risky=yes
You can’t perform that action at this time.
0 commit comments