File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Expand file tree Collapse file tree 2 files changed +18
-13
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
-
13
-
14
12
steps :
15
13
- name : Checkout code
16
14
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -10,9 +10,22 @@ concurrency:
10
10
11
11
jobs :
12
12
tests :
13
+ services :
14
+ neo4j :
15
+ image : neo4j:latest
16
+ ports :
17
+ - 7474:7474
18
+ - 7687:7687
19
+ env :
20
+ NEO4J_AUTH : neo4j/password
21
+ options : >-
22
+ --health-cmd "curl --silent --fail localhost:7474 || exit 1"
23
+ --health-interval 10s
24
+ --health-retries 5
25
+ --health-timeout 5s
26
+
13
27
name : Run PHPUnit Tests
14
28
runs-on : ubuntu-latest
15
-
16
29
steps :
17
30
- name : Checkout code
18
31
uses : actions/checkout@v3
33
46
- name : Install dependencies
34
47
run : composer install --no-progress --prefer-dist
35
48
36
- - name : Set Neo4j Environment Variables
37
- run : |
38
- echo "NEO4J_ADDRESS=https://6f72daa1.databases.neo4j.io" >> $GITHUB_ENV
39
- echo "NEO4J_USERNAME=neo4j" >> $GITHUB_ENV
40
- echo "NEO4J_PASSWORD=9lWmptqBgxBOz8NVcTJjgs3cHPyYmsy63ui6Spmw1d0" >> $GITHUB_ENV
41
-
42
- - name : Run Tests
49
+ - name : Run Tests without phpunit.xml
43
50
env :
44
- NEO4J_ADDRESS : ${{ env.NEO4J_ADDRESS }}
45
- NEO4J_USERNAME : ${{ env.NEO4J_USERNAME }}
46
- NEO4J_PASSWORD : ${{ env.NEO4J_PASSWORD }}
51
+ NEO4J_ADDRESS : " http://neo4j "
52
+ NEO4J_USERNAME : " neo4j "
53
+ NEO4J_PASSWORD : " password "
47
54
run : vendor/bin/phpunit --configuration phpunit.dist.xml
You can’t perform that action at this time.
0 commit comments