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:
11
11
12
12
services :
13
13
neo4j :
14
- image : neo4j:5.5 # Use a stable version instead of ' latest'
14
+ image : neo4j:latest
15
15
ports :
16
16
- 7474:7474
17
17
- 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
25
18
26
19
steps :
27
20
- name : Checkout code
28
21
uses : actions/checkout@v3
29
22
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
32
28
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
44
31
45
32
- 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