File tree Expand file tree Collapse file tree 3 files changed +15
-17
lines changed Expand file tree Collapse file tree 3 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 9
9
name : PHP CS Fixer
10
10
runs-on : ubuntu-latest
11
11
12
- services :
13
- neo4j :
14
- image : neo4j:latest
15
- ports :
16
- - 7474:7474
17
- - 7687:7687
12
+
18
13
19
14
steps :
20
15
- name : Checkout code
Original file line number Diff line number Diff line change 9
9
name : Run Psalm
10
10
runs-on : ubuntu-latest
11
11
12
- services :
13
- neo4j :
14
- image : neo4j:latest
15
- ports :
16
- - 7474:7474
17
- - 7687:7687
12
+
18
13
steps :
19
14
- name : Checkout code
20
15
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 19
19
ports :
20
20
- 7474:7474
21
21
- 7687:7687
22
+ env :
23
+ NEO4J_AUTH : neo4j/password
24
+ options : >-
25
+ --health-cmd "curl --silent --fail localhost:7474 || exit 1"
26
+ --health-interval 10s
27
+ --health-retries 5
28
+ --health-timeout 5s
29
+
22
30
steps :
23
31
- name : Checkout code
24
32
uses : actions/checkout@v3
39
47
- name : Install dependencies
40
48
run : composer install --no-progress --prefer-dist
41
49
42
- - name : Run Tests without phpunit.xml
43
- env :
44
- NEO4J_ADDRESS : ${{ secrets.NEO4J_ADDRESS }}
45
- NEO4J_USERNAME : ${{ secrets.NEO4J_USERNAME }}
46
- NEO4J_PASSWORD : ${{ secrets.NEO4J_PASSWORD }}
50
+ - name : Load environment variables from .env
51
+ run : |
52
+ export $(grep -v '^#' .env | xargs)
53
+
54
+ - name : Run PHPUnit Tests
47
55
run : vendor/bin/phpunit --configuration phpunit.dist.xml
You can’t perform that action at this time.
0 commit comments