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 99 name : PHP CS Fixer
1010 runs-on : ubuntu-latest
1111
12- services :
13- neo4j :
14- image : neo4j:latest
15- ports :
16- - 7474:7474
17- - 7687:7687
12+
1813
1914 steps :
2015 - name : Checkout code
Original file line number Diff line number Diff line change 99 name : Run Psalm
1010 runs-on : ubuntu-latest
1111
12- services :
13- neo4j :
14- image : neo4j:latest
15- ports :
16- - 7474:7474
17- - 7687:7687
12+
1813 steps :
1914 - name : Checkout code
2015 uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1919 ports :
2020 - 7474:7474
2121 - 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+
2230 steps :
2331 - name : Checkout code
2432 uses : actions/checkout@v3
3947 - name : Install dependencies
4048 run : composer install --no-progress --prefer-dist
4149
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
4755 run : vendor/bin/phpunit --configuration phpunit.dist.xml
You can’t perform that action at this time.
0 commit comments